amazonka-cognito-idp-2.0: Amazon Cognito Identity Provider SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Creating a Request

data VerifySoftwareToken Source #

See: newVerifySoftwareToken smart constructor.

Constructors

VerifySoftwareToken' 

Fields

Instances

Instances details
ToJSON VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

ToHeaders VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

ToPath VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

ToQuery VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

AWSRequest VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

Associated Types

type AWSResponse VerifySoftwareToken #

Generic VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

Associated Types

type Rep VerifySoftwareToken :: Type -> Type #

Show VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

NFData VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

Methods

rnf :: VerifySoftwareToken -> () #

Eq VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

Hashable VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

type AWSResponse VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

type Rep VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

type Rep VerifySoftwareToken = D1 ('MetaData "VerifySoftwareToken" "Amazonka.CognitoIdentityProvider.VerifySoftwareToken" "amazonka-cognito-idp-2.0-D1ERgMvEVPG9z8cOLXdU2" 'False) (C1 ('MetaCons "VerifySoftwareToken'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "accessToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "friendlyDeviceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "session") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "userCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newVerifySoftwareToken Source #

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_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

Instances details
Generic VerifySoftwareTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

Associated Types

type Rep VerifySoftwareTokenResponse :: Type -> Type #

Read VerifySoftwareTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

Show VerifySoftwareTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

NFData VerifySoftwareTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

Eq VerifySoftwareTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

type Rep VerifySoftwareTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

type Rep VerifySoftwareTokenResponse = D1 ('MetaData "VerifySoftwareTokenResponse" "Amazonka.CognitoIdentityProvider.VerifySoftwareToken" "amazonka-cognito-idp-2.0-D1ERgMvEVPG9z8cOLXdU2" 'False) (C1 ('MetaCons "VerifySoftwareTokenResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "session") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VerifySoftwareTokenResponseType)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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.