Overview
A singleton class that works as client for Identity Toolkit.
Inherits NSObject.
Instance Method Summary | |
(void) | - setAdditionalScopes:forProvider: |
Adds additional scopes for an identity provider. More... | |
(NSArray *) | - additionalScopesForProvider: |
Gets additional scopes for an identity provider, could be nil . More... | |
Class Method Summary | |
(GITClient *) | + sharedInstance |
Returns a shared GITClient instance. More... | |
(BOOL) | + handleOpenURL:sourceApplication:annotation: |
Handles callback from system browser. More... | |
Properties | |
NSString * | apiKey |
The API key of the Identity Toolkit project in Google Cloud Console. More... | |
NSString * | widgetURL |
Where the Identity Toolkit Javascript widget is hosted. More... | |
NSArray * | providers |
An array of provider IDs to support on this app. More... | |
BOOL | useGooglePlus |
Whether to request access to social features for Google users. More... | |
id< GITClientDelegate > | delegate |
The object to be notified at the end of an authentication operation. More... | |
Method Detail
+ (BOOL) handleOpenURL: | (NSURL *) | url | |
sourceApplication: | (NSString *) | sourceApplication | |
annotation: | (id) | annotation | |
Handles callback from system browser.
- (void) setAdditionalScopes: | (NSArray *) | scopes | |
forProvider: | (NSString *) | providerId | |
Adds additional scopes for an identity provider.
Note that this only works for Google and Facebook.
- Parameters
-
scopes An NSArray of scopes as NSStrings. providerId The ID of the identity provider.
- (NSArray *) additionalScopesForProvider: | (NSString *) | providerId |
Gets additional scopes for an identity provider, could be nil
.
Property Documentation
|
readwritenonatomiccopy |
The API key of the Identity Toolkit project in Google Cloud Console.
|
readwritenonatomiccopy |
Where the Identity Toolkit Javascript widget is hosted.
|
readwritenonatomicstrong |
An array of provider IDs to support on this app.
|
readwritenonatomicassign |
Whether to request access to social features for Google users.
|
readwritenonatomicweak |
The object to be notified at the end of an authentication operation.