Couchbase Lite
Objective-C API for iOS and Mac OS
CBLAuthenticator(OpenID) Category Reference

Class Methods

(id< CBLAuthenticator >) + OpenIDConnectAuthenticator:
 Creates an authenticator for use with OpenID Connect (NOT any earlier versions of OpenID.) This authenticator will use an ID token saved in the Keychain; if there isn't one, or if it's expired and can't be renewed, then a login is required, which will involve user interaction with a login web page run by the identity provider. More...
 

Method Documentation

◆ OpenIDConnectAuthenticator:()

+ (id<CBLAuthenticator>) OpenIDConnectAuthenticator: (CBLOIDCLoginCallback callback

Creates an authenticator for use with OpenID Connect (NOT any earlier versions of OpenID.) This authenticator will use an ID token saved in the Keychain; if there isn't one, or if it's expired and can't be renewed, then a login is required, which will involve user interaction with a login web page run by the identity provider.

Since Couchbase Lite doesn't have its own UI, it delegates this task to your app.

The replicator will call your login callback, passing it the URL of this web page and the URL to which the identity provider will redirect when the login is complete. You then open a WebView and let the login happen asynchronously. When it completes, you call the CBLOIDCLoginContinuation callback that was also passed to your login callback.

Please see the docs of the CBLOIDCLoginCallback and CBLOIDCLoginContinuation types for more details.

Extends class CBLAuthenticator.


The documentation for this category was generated from the following file: