AWSCognitoIdentityCustomAuthentication
Objective-C
@protocol AWSCognitoIdentityCustomAuthentication <NSObject>
/**
Obtain input for a custom challenge from the end user
@param authenticationInput details the challenge including the challenge name and inputs
@param customAuthCompletionSource set customAuthCompletionSource.result with the challenge answers from the end user
*/
-(void) getCustomChallengeDetails: (AWSCognitoIdentityCustomAuthenticationInput *) authenticationInput customAuthCompletionSource: (AWSTaskCompletionSource<AWSCognitoIdentityCustomChallengeDetails *> *) customAuthCompletionSource;
/**
This step completed, usually either display an error to the end user or dismiss ui
@param error the error if any that occured
*/
-(void) didCompleteCustomAuthenticationStepWithError:(NSError* _Nullable) error;
@end
Swift
protocol AWSCognitoIdentityCustomAuthentication : NSObjectProtocol
Undocumented
-
Obtain input for a custom challenge from the end user
Declaration
Objective-C
- (void)getCustomChallengeDetails: (nonnull AWSCognitoIdentityCustomAuthenticationInput *) authenticationInput customAuthCompletionSource:(id)customAuthCompletionSource;
Swift
func getCustomChallengeDetails(_ authenticationInput: AWSCognitoIdentityCustomAuthenticationInput, customAuthCompletionSource: Any!)
Parameters
authenticationInput
details the challenge including the challenge name and inputs
customAuthCompletionSource
set customAuthCompletionSource.result with the challenge answers from the end user
-
This step completed, usually either display an error to the end user or dismiss ui
Declaration
Objective-C
- (void)didCompleteCustomAuthenticationStepWithError:(NSError *_Nullable)error;
Swift
func didCompleteStepWithError(_ error: Error?)
Parameters
error
the error if any that occured