| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CognitoIdentityProvider.VerifySoftwareToken
Description
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.
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_session :: Lens' VerifySoftwareTokenResponse (Maybe Text)
- verifySoftwareTokenResponse_status :: Lens' VerifySoftwareTokenResponse (Maybe VerifySoftwareTokenResponseType)
- 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:
VerifySoftwareToken, verifySoftwareToken_accessToken - A valid access token that Amazon Cognito issued to the user whose
software token you want to verify.
$sel:friendlyDeviceName:VerifySoftwareToken', verifySoftwareToken_friendlyDeviceName - The friendly device name.
VerifySoftwareToken, verifySoftwareToken_session - The session that 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 #
A valid access token that Amazon Cognito issued to the user whose software token you want to verify.
verifySoftwareToken_friendlyDeviceName :: Lens' VerifySoftwareToken (Maybe Text) Source #
The friendly device name.
verifySoftwareToken_session :: Lens' VerifySoftwareToken (Maybe Text) Source #
The session that 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:
VerifySoftwareToken, verifySoftwareTokenResponse_session - The session that should be passed both ways in challenge-response calls
to the service.
VerifySoftwareTokenResponse, verifySoftwareTokenResponse_status - The status of the verify software token.
$sel:httpStatus:VerifySoftwareTokenResponse', verifySoftwareTokenResponse_httpStatus - The response's http status code.
Response Lenses
verifySoftwareTokenResponse_session :: Lens' VerifySoftwareTokenResponse (Maybe Text) Source #
The session that should be passed both ways in challenge-response calls to the service.
verifySoftwareTokenResponse_status :: Lens' VerifySoftwareTokenResponse (Maybe VerifySoftwareTokenResponseType) Source #
The status of the verify software token.
verifySoftwareTokenResponse_httpStatus :: Lens' VerifySoftwareTokenResponse Int Source #
The response's http status code.