AWSCognitoAuthConfiguration Class Reference

Inherits from NSObject
Declared in AWSCognitoAuth.h
AWSCognitoAuth.m

Overview

Houses all configuration for AWSCognitoAuth

  appClientId

The app client id

@property (nonatomic, readonly) NSString *appClientId

Declared In

AWSCognitoAuth.h

  appClientSecret

The optional app client secret

@property (nonatomic, readonly) NSString *appClientSecret

Declared In

AWSCognitoAuth.h

  scopes

The scopes

@property (nonatomic, readonly) NSSet<NSString*> *scopes

Declared In

AWSCognitoAuth.h

  signInRedirectUri

uri to redirect on sign in. Must be configured as a uri scheme in your info.plist

@property (nonatomic, readonly) NSString *signInRedirectUri

Declared In

AWSCognitoAuth.h

  signOutRedirectUri

uri to redirect on sign out. Must be configured as a uri scheme in your info.plist

@property (nonatomic, readonly) NSString *signOutRedirectUri

Declared In

AWSCognitoAuth.h

  webDomain

The FQDN of your Cognito endpoint, something like https://mydomain.region.auth.amazoncognito.com

@property (nonatomic, readonly) NSString *webDomain

Declared In

AWSCognitoAuth.h

– initWithAppClientId:appClientSecret:scopes:signInRedirectUri:signOutRedirectUri:webDomain:

Configuration object for CognitoAuth

- (instancetype)initWithAppClientId:(NSString *)appClientId appClientSecret:(nullable NSString *)appClientSecret scopes:(NSSet<NSString*> *)scopes signInRedirectUri:(NSString *)signInRedirectUri signOutRedirectUri:(NSString *)signOutRedirectUri webDomain:(NSString *)webDomain

Parameters

appClientId

The app client id

appClientSecret

The optional app client secret

scopes

Set of scopes to obtain

signInRedirectUri

uri to redirect on sign in. Must be configured as a uri scheme in your info.plist

signOutRedirectUri

uri to redirect on sign out. Must be configured as a uri scheme in your info.plist

webDomain

The FQDN of your Cognito endpoint, something like https://mydomain.region.auth.amazoncognito.com

Declared In

AWSCognitoAuth.h