Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Use this API to register a user's entered TOTP code and mark the user's software token MFA status as "verified" if successful,
Synopsis
- verifySoftwareToken :: Text -> VerifySoftwareToken
- data VerifySoftwareToken
- vstAccessToken :: Lens' VerifySoftwareToken (Maybe Text)
- vstFriendlyDeviceName :: Lens' VerifySoftwareToken (Maybe Text)
- vstSession :: Lens' VerifySoftwareToken (Maybe Text)
- vstUserCode :: Lens' VerifySoftwareToken Text
- verifySoftwareTokenResponse :: Int -> VerifySoftwareTokenResponse
- data VerifySoftwareTokenResponse
- vstrsStatus :: Lens' VerifySoftwareTokenResponse (Maybe VerifySoftwareTokenResponseType)
- vstrsSession :: Lens' VerifySoftwareTokenResponse (Maybe Text)
- vstrsResponseStatus :: Lens' VerifySoftwareTokenResponse Int
Creating a Request
Creates a value of VerifySoftwareToken
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
vstAccessToken
- The access token.vstFriendlyDeviceName
- The friendly device name.vstSession
- The session which should be passed both ways in challenge-response calls to the service.vstUserCode
- The one time password computed using the secret code returned by
data VerifySoftwareToken Source #
See: verifySoftwareToken
smart constructor.
Instances
Request Lenses
vstAccessToken :: Lens' VerifySoftwareToken (Maybe Text) Source #
The access token.
vstFriendlyDeviceName :: Lens' VerifySoftwareToken (Maybe Text) Source #
The friendly device name.
vstSession :: Lens' VerifySoftwareToken (Maybe Text) Source #
The session which should be passed both ways in challenge-response calls to the service.
vstUserCode :: Lens' VerifySoftwareToken Text Source #
The one time password computed using the secret code returned by
Destructuring the Response
verifySoftwareTokenResponse Source #
Creates a value of VerifySoftwareTokenResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
vstrsStatus
- The status of the verify software token.vstrsSession
- The session which should be passed both ways in challenge-response calls to the service.vstrsResponseStatus
- -- | The response status code.
data VerifySoftwareTokenResponse Source #
See: verifySoftwareTokenResponse
smart constructor.
Instances
Response Lenses
vstrsStatus :: Lens' VerifySoftwareTokenResponse (Maybe VerifySoftwareTokenResponseType) Source #
The status of the verify software token.
vstrsSession :: Lens' VerifySoftwareTokenResponse (Maybe Text) Source #
The session which should be passed both ways in challenge-response calls to the service.
vstrsResponseStatus :: Lens' VerifySoftwareTokenResponse Int Source #
- - | The response status code.