AWSGoogleSignInProvider Class Reference

Inherits from NSObject
Conforms to AWSSignInProvider
AWSSignInProviderApplicationIntercept
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

– isLoggedIn

Determines if a user is logged in.

- (BOOL)isLoggedIn

Declared In

AWSSignInProvider.h

– reloadSession

The handler method for managing the session reload for the Sign-In Provider. The completionHandler will bubble back errors to the developers.

- (void)reloadSession

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:(AWSSignInManagerCompletionBlock)completionHandler

Declared In

AWSSignInProvider.h

– logout

The logout handler method for the Sign-In Provider.

- (void)logout

Declared In

AWSSignInProvider.h

– interceptApplication:didFinishLaunchingWithOptions:

Passes parameters used to launch the application to the current identity provider. For some third party providers, this completes the User Sign-in call flow, which used a browser to get information from the user, directly. The current sign-in provider will be set to nil if the sign-in provider is not registered using registerAWSSignInProvider:forKey method of AWSSignInProviderFactory class.

- (BOOL)interceptApplication:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

Parameters

application

application

launchOptions

options used to launch the application

Return Value

true if this call handled the operation

Declared In

AWSSignInProviderApplicationIntercept.h

– interceptApplication:openURL:sourceApplication:annotation:

Passes parameters used to launch the application to the current identity provider. For some third party providers, this completes the User Sign-in call flow, which used a browser to get information from the user, directly.

- (BOOL)interceptApplication:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation

Parameters

application

application

url

url used to open the application

sourceApplication

source application

annotation

annotation

Return Value

true if this call handled the operation

Declared In

AWSSignInProviderApplicationIntercept.h