AWSGoogleSignInProvider Class Reference
| Inherits from | NSObject |
|---|---|
| Conforms to | AWSSignInProvider |
| Declared in | AWSGoogleSignInProvider.h AWSGoogleSignInProvider.m |
Overview
AWSGoogleSignInProvider adopts the AWSSignInProvider protocol.
It works with the Google Sign In SDK internally and requires the Google Client ID provided by Google.
Other Methods
+ sharedInstance
Fetches the shared instance for AWSGoogleSignInProvider.
+ (instancetype)sharedInstanceReturn Value
the single instance of AWSGoogleSignInProvider
Declared In
AWSGoogleSignInProvider.h
– setScopes:
Sets the scopes required by the app during login. Defaults are openid and profile.
- (void)setScopes:(NSArray *)scopesDeclared In
AWSGoogleSignInProvider.h
– setViewControllerForGoogleSignIn:
Sets the ViewController used for Google SignIn. Defaults to rootViewController in keyWindow during signin.
- (void)setViewControllerForGoogleSignIn:(UIViewController *)signInViewControllerDeclared In
AWSGoogleSignInProvider.h
Other Methods
– setUserName:
The User Name of a user.
- (void)setUserName:(NSString *)userNameDeclared In
AWSSignInProvider.h
– setImageURL:
The URL for profile image of a user.
- (void)setImageURL:(NSURL *)imageURLDeclared In
AWSSignInProvider.h
– reloadSession
The handler method for managing the session reload for the Sign-In Provider.
- (void)reloadSessionDeclared In
AWSSignInProvider.h
– setCachedLoginFlag
Call this method on a successful login. This method should store a flag in persistent storage which determines if the user has signed-in using this sign-in provider.
This method is called by AWSIdentityManager on interceptApplication:didFinishLaunchingWithOptions method to set the current sign-in provider.
- (void)setCachedLoginFlagDeclared In
AWSSignInProvider.h
– isCachedLoginFlagSet
Fetches the status of the cached login flag set using setCachedLoginFlag.
- (BOOL)isCachedLoginFlagSetReturn Value
YES if the setCachedLoginFlag is set.
Declared In
AWSSignInProvider.h
– clearCachedLoginFlag
Clears the cached login flag. This method should be called during logout to clear the stored flag.
- (void)clearCachedLoginFlagDeclared In
AWSSignInProvider.h
– login:
The login handler method for the Sign-In Provider. The completionHandler will bubble back errors to the developers.
- (void)login:(AWSIdentityManagerCompletionBlock)completionHandlerDeclared In
AWSSignInProvider.h
– logout
The logout handler method for the Sign-In Provider.
- (void)logoutDeclared In
AWSSignInProvider.h