Module Awso_cognito_idp.VerifySoftwareTokenRequestSource

Registers the current user's time-based one-time password (TOTP) authenticator with a code generated in their authenticator app from a private key that's supplied by your user pool. Marks the user's software token MFA status as "verified" if successful. The request takes an access token or a session string, but not both. Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito user pools API and user pool endpoints.

Sourcetype nonrec t = {
  1. accessToken : TokenModelType.t option;
    (*

    A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for aws.cognito.signin.user.admin.

    *)
  2. session : SessionType.t option;
    (*

    The session ID from an AssociateSoftwareToken request.

    *)
  3. userCode : SoftwareTokenMFAUserCodeType.t;
    (*

    A TOTP that the user generated in their configured authenticator app.

    *)
  4. friendlyDeviceName : StringType.t option;
    (*

    A friendly name for the device that's running the TOTP authenticator.

    *)
}
Sourceval context_ : string
Sourceval make : ?accessToken:??? -> ?session:??? -> ?friendlyDeviceName:??? -> userCode:SoftwareTokenMFAUserCodeType.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of TokenModelType.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t