AWSCognitoIdentityPasswordAuthentication
Objective-C
@protocol AWSCognitoIdentityPasswordAuthentication <NSObject>
/**
Obtain username and password from end user.
@param authenticationInput input details including last known username
@param passwordAuthenticationCompletionSource set passwordAuthenticationCompletionSource.result
with the username and password received from the end user.
*/
-(void) getPasswordAuthenticationDetails: (AWSCognitoIdentityPasswordAuthenticationInput *) authenticationInput passwordAuthenticationCompletionSource: (AWSTaskCompletionSource<AWSCognitoIdentityPasswordAuthenticationDetails *> *) passwordAuthenticationCompletionSource;
/**
This step completed, usually either display an error to the end user or dismiss ui
@param error the error if any that occured
*/
-(void) didCompletePasswordAuthenticationStepWithError:(NSError* _Nullable) error;
@end
Swift
protocol AWSCognitoIdentityPasswordAuthentication : NSObjectProtocol
Undocumented
-
Obtain username and password from end user.
Declaration
Objective-C
- (void)getPasswordAuthenticationDetails: (nonnull AWSCognitoIdentityPasswordAuthenticationInput *) authenticationInput passwordAuthenticationCompletionSource: (id)passwordAuthenticationCompletionSource;
Swift
func getDetails(_ authenticationInput: AWSCognitoIdentityPasswordAuthenticationInput, passwordAuthenticationCompletionSource: Any!)
Parameters
authenticationInput
input details including last known username
passwordAuthenticationCompletionSource
set passwordAuthenticationCompletionSource.result with the username and password received from the end user.
-
This step completed, usually either display an error to the end user or dismiss ui
Declaration
Objective-C
- (void)didCompletePasswordAuthenticationStepWithError: (NSError *_Nullable)error;
Swift
func didCompleteStepWithError(_ error: Error?)
Parameters
error
the error if any that occured