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)sharedInstance
Return 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 *)scopes
Declared In
AWSGoogleSignInProvider.h
– setViewControllerForGoogleSignIn:
Sets the ViewController used for Google SignIn. Defaults to rootViewController in keyWindow during signin.
- (void)setViewControllerForGoogleSignIn:(UIViewController *)signInViewController
Declared In
AWSGoogleSignInProvider.h
Other Methods
– setUserName:
The User Name of a user.
- (void)setUserName:(NSString *)userName
Declared In
AWSSignInProvider.h
– setImageURL:
The URL for profile image of a user.
- (void)setImageURL:(NSURL *)imageURL
Declared In
AWSSignInProvider.h
– reloadSession
The handler method for managing the session reload for the Sign-In Provider.
- (void)reloadSession
Declared 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)setCachedLoginFlag
Declared In
AWSSignInProvider.h
– isCachedLoginFlagSet
Fetches the status of the cached login flag set using setCachedLoginFlag
.
- (BOOL)isCachedLoginFlagSet
Return 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)clearCachedLoginFlag
Declared 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)completionHandler
Declared In
AWSSignInProvider.h
– logout
The logout handler method for the Sign-In Provider.
- (void)logout
Declared In
AWSSignInProvider.h