Awso_cognito_idp.GetUserAuthFactorsResponseSourceLists the authentication options for the currently signed-in user. Returns the following: The user's multi-factor authentication (MFA) preferences. The user's options for choice-based authentication with the USER_AUTH flow. Authorize this action with a signed-in user's access token. It must include the scope aws.cognito.signin.user.admin. 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.
type nonrec t = {username : UsernameType.t option;The name of the user who is eligible for the authentication factors in the response.
*)preferredMfaSetting : StringType.t option;The challenge method that Amazon Cognito returns to the user in response to sign-in requests. Users can prefer SMS message, email message, or TOTP MFA.
*)userMFASettingList : UserMFASettingListType.t option;The MFA options that are activated for the user. The possible values in this list are SMS_MFA, EMAIL_OTP, and SOFTWARE_TOKEN_MFA.
*)configuredUserAuthFactors : ConfiguredUserAuthFactorsListType.t option;The authentication types that are available to the user with USER_AUTH sign-in, for example ["PASSWORD", "WEB_AUTHN"].
*)}type nonrec error = [ | `ForbiddenException of ForbiddenException.t| `InternalErrorException of InternalErrorException.t| `InvalidParameterException of InvalidParameterException.t| `NotAuthorizedException of NotAuthorizedException.t| `PasswordResetRequiredException of PasswordResetRequiredException.t| `ResourceNotFoundException of ResourceNotFoundException.t| `TooManyRequestsException of TooManyRequestsException.t| `UserNotConfirmedException of UserNotConfirmedException.t| `UserNotFoundException of UserNotFoundException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `ForbiddenException of ForbiddenException.t
| `InternalErrorException of InternalErrorException.t
| `InvalidParameterException of InvalidParameterException.t
| `NotAuthorizedException of NotAuthorizedException.t
| `PasswordResetRequiredException of PasswordResetRequiredException.t
| `ResourceNotFoundException of ResourceNotFoundException.t
| `TooManyRequestsException of TooManyRequestsException.t
| `Unknown_operation_error of string * string option
| `UserNotConfirmedException of UserNotConfirmedException.t
| `UserNotFoundException of UserNotFoundException.t ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `ForbiddenException of ForbiddenException.t
| `InternalErrorException of InternalErrorException.t
| `InvalidParameterException of InvalidParameterException.t
| `NotAuthorizedException of NotAuthorizedException.t
| `PasswordResetRequiredException of PasswordResetRequiredException.t
| `ResourceNotFoundException of ResourceNotFoundException.t
| `TooManyRequestsException of TooManyRequestsException.t
| `Unknown_operation_error of string * string option
| `UserNotConfirmedException of UserNotConfirmedException.t
| `UserNotFoundException of UserNotFoundException.t ]val to_value :
t ->
[> `Structure of
(string
* [> `List of [> `Enum of string | `String of StringType.t ] list
| `String of UsernameType.t ])
list ]