Couchbase Lite
Objective-C API for iOS and Mac OS
CBLAuthenticator+OpenID.h
Go to the documentation of this file.
1 //
2 // CBLAuthenticator+OpenID.h
3 // CouchbaseLite
4 //
5 // Created by Jens Alfke on 6/6/16.
6 // Copyright © 2016 Couchbase, Inc. All rights reserved.
7 //
8 
9 #import "CBLAuthenticator.h"
10 
12 
13 
23 typedef void (^CBLOIDCLoginContinuation)(NSURL* __nullable redirectedURL, NSError* __nullable error);
24 
25 
48 typedef void (^CBLOIDCLoginCallback)(NSURL* loginURL, NSURL* redirectURL, CBLOIDCLoginContinuation);
49 
50 
52 
66 + (id<CBLAuthenticator>) OpenIDConnectAuthenticator: (CBLOIDCLoginCallback)callback;
67 
68 @end
69 
#define NS_ASSUME_NONNULL_BEGIN
Definition: CBLBase.h:20
#define __nullable
Definition: CBLBase.h:23
#define NS_ASSUME_NONNULL_END
Definition: CBLBase.h:21
The CBLAuthenticator class provides factory methods for creating authenticator objects, for use with the .authenticator property of a CBLReplication.
Definition: CBLAuthenticator.h:25
NS_ASSUME_NONNULL_BEGIN typedef void(^ CBLOIDCLoginContinuation)(NSURL *__nullable redirectedURL, NSError *__nullable error)
Callback that will be passed to your CBLOIDCLoginCallback.
void(^ CBLOIDCLoginCallback)(NSURL *loginURL, NSURL *redirectURL, CBLOIDCLoginContinuation)
Callback block given when creating an OpenID Connect authenticator.
Definition: CBLAuthenticator+OpenID.h:48
Definition: CBLAuthenticator+OpenID.h:51