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
authenticationInputdetails the challenge including the challenge name and inputs
customAuthCompletionSourceset 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
errorthe error if any that occured
View on GitHub
Install in Dash
AWSCognitoIdentityCustomAuthentication Protocol Reference