CognitoIdentityProvider.Client.
verify_software_token
(**kwargs)¶Use this API to register a user's entered time-based one-time password (TOTP) code and mark the user's software token MFA status as "verified" if successful. The request takes an access token or a session string, but not both.
See also: AWS API Documentation
Request Syntax
response = client.verify_software_token(
AccessToken='string',
Session='string',
UserCode='string',
FriendlyDeviceName='string'
)
[REQUIRED]
The one- time password computed using the secret code returned by AssociateSoftwareToken.
dict
Response Syntax
{
'Status': 'SUCCESS'|'ERROR',
'Session': 'string'
}
Response Structure
(dict) --
Status (string) --
The status of the verify software token.
Session (string) --
The session that should be passed both ways in challenge-response calls to the service.
Exceptions
CognitoIdentityProvider.Client.exceptions.InvalidParameterException
CognitoIdentityProvider.Client.exceptions.ResourceNotFoundException
CognitoIdentityProvider.Client.exceptions.InvalidUserPoolConfigurationException
CognitoIdentityProvider.Client.exceptions.NotAuthorizedException
CognitoIdentityProvider.Client.exceptions.TooManyRequestsException
CognitoIdentityProvider.Client.exceptions.PasswordResetRequiredException
CognitoIdentityProvider.Client.exceptions.UserNotFoundException
CognitoIdentityProvider.Client.exceptions.UserNotConfirmedException
CognitoIdentityProvider.Client.exceptions.InternalErrorException
CognitoIdentityProvider.Client.exceptions.EnableSoftwareTokenMFAException
CognitoIdentityProvider.Client.exceptions.NotAuthorizedException
CognitoIdentityProvider.Client.exceptions.SoftwareTokenMFANotFoundException
CognitoIdentityProvider.Client.exceptions.CodeMismatchException
CognitoIdentityProvider.Client.exceptions.ForbiddenException