| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.CognitoIdentityProvider.VerifySoftwareToken
Description
Use this API to register a user's entered 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.
Synopsis
- data VerifySoftwareToken = VerifySoftwareToken' {}
- newVerifySoftwareToken :: Text -> VerifySoftwareToken
- verifySoftwareToken_accessToken :: Lens' VerifySoftwareToken (Maybe Text)
- verifySoftwareToken_friendlyDeviceName :: Lens' VerifySoftwareToken (Maybe Text)
- verifySoftwareToken_session :: Lens' VerifySoftwareToken (Maybe Text)
- verifySoftwareToken_userCode :: Lens' VerifySoftwareToken Text
- data VerifySoftwareTokenResponse = VerifySoftwareTokenResponse' {}
- newVerifySoftwareTokenResponse :: Int -> VerifySoftwareTokenResponse
- verifySoftwareTokenResponse_status :: Lens' VerifySoftwareTokenResponse (Maybe VerifySoftwareTokenResponseType)
- verifySoftwareTokenResponse_session :: Lens' VerifySoftwareTokenResponse (Maybe Text)
- verifySoftwareTokenResponse_httpStatus :: Lens' VerifySoftwareTokenResponse Int
Creating a Request
data VerifySoftwareToken Source #
See: newVerifySoftwareToken smart constructor.
Constructors
| VerifySoftwareToken' | |
Fields
| |
Instances
newVerifySoftwareToken Source #
Arguments
| :: Text | |
| -> VerifySoftwareToken |
Create a value of VerifySoftwareToken with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:accessToken:VerifySoftwareToken', verifySoftwareToken_accessToken - The access token.
$sel:friendlyDeviceName:VerifySoftwareToken', verifySoftwareToken_friendlyDeviceName - The friendly device name.
$sel:session:VerifySoftwareToken', verifySoftwareToken_session - The session which should be passed both ways in challenge-response calls
to the service.
$sel:userCode:VerifySoftwareToken', verifySoftwareToken_userCode - The one time password computed using the secret code returned by
AssociateSoftwareToken".
Request Lenses
verifySoftwareToken_accessToken :: Lens' VerifySoftwareToken (Maybe Text) Source #
The access token.
verifySoftwareToken_friendlyDeviceName :: Lens' VerifySoftwareToken (Maybe Text) Source #
The friendly device name.
verifySoftwareToken_session :: Lens' VerifySoftwareToken (Maybe Text) Source #
The session which should be passed both ways in challenge-response calls to the service.
verifySoftwareToken_userCode :: Lens' VerifySoftwareToken Text Source #
The one time password computed using the secret code returned by AssociateSoftwareToken".
Destructuring the Response
data VerifySoftwareTokenResponse Source #
See: newVerifySoftwareTokenResponse smart constructor.
Constructors
| VerifySoftwareTokenResponse' | |
Fields
| |
Instances
newVerifySoftwareTokenResponse Source #
Create a value of VerifySoftwareTokenResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:status:VerifySoftwareTokenResponse', verifySoftwareTokenResponse_status - The status of the verify software token.
$sel:session:VerifySoftwareToken', verifySoftwareTokenResponse_session - The session which should be passed both ways in challenge-response calls
to the service.
$sel:httpStatus:VerifySoftwareTokenResponse', verifySoftwareTokenResponse_httpStatus - The response's http status code.
Response Lenses
verifySoftwareTokenResponse_status :: Lens' VerifySoftwareTokenResponse (Maybe VerifySoftwareTokenResponseType) Source #
The status of the verify software token.
verifySoftwareTokenResponse_session :: Lens' VerifySoftwareTokenResponse (Maybe Text) Source #
The session which should be passed both ways in challenge-response calls to the service.
verifySoftwareTokenResponse_httpStatus :: Lens' VerifySoftwareTokenResponse Int Source #
The response's http status code.