AWSSignInManager Class Reference

Inherits from NSObject
Declared in AWSSignInManager.h
AWSSignInManager.m

Other Methods

– logoutWithCompletionHandler:

Signs the user out of whatever third party identity provider they used to sign in.

- (void)logoutWithCompletionHandler:(void ( ^ ) ( id result , NSError *error ))completionHandler

Parameters

completionHandler

used to callback application with async operation results

Declared In

AWSSignInManager.h

– resumeSessionWithCompletionHandler:

Attempts to resume session with the previous sign-in provider.

- (void)resumeSessionWithCompletionHandler:(void ( ^ ) ( id result , NSError *error ))completionHandler

Parameters

completionHandler

used to callback application with async operation results

Declared In

AWSSignInManager.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

AWSSignInManager.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

AWSSignInManager.h

Other Methods

  loggedIn

Indicates whether the user is signed-in or not.

@property (nonatomic, readonly, getter=isLoggedIn) BOOL loggedIn

Return Value

true if user is signed-in

Declared In

AWSSignInManager.h

  delegate

The delegate class to be called when a user attempts to login with a registered sign in provider.

@property (nonatomic, weak) id<AWSSignInDelegate> delegate

Declared In

AWSSignInManager.h

– registerAWSSignInProvider:NS_SWIFT_NAME:

Registers the shared instance of sign in provider implementing AWSSignInProvider.

- (void)registerAWSSignInProvider:(id<AWSSignInProvider>)signInProvider NS_SWIFT_NAME

Parameters

signInProvider

The shared instance of sign in provider implementing AWSSignInProvider protocol. *

Declared In

AWSSignInManager.h

– loginWithSignInProviderKey:completionHandler:NS_SWIFT_NAME:

Signs the user in with an identity provider. Note that even if User Sign-in is not enabled in the project, the user is still signed-in with the Guest type provider.

- (void)loginWithSignInProviderKey:(NSString *)signInProviderKey completionHandler:(void ( ^ ) ( id _Nullable result , NSError *_Nullable error ))completionHandler NS_SWIFT_NAME

Parameters

signInProviderKey

the identifier key of sign in provider

completionHandler

used to callback application with async operation results

Declared In

AWSSignInManager.h