Awso_srp_async.SrpSourceCognito Secure Remote Password (SRP) protocol implementation. Extends the unix version with async support and direct cognito integration via usage of the async cognito_idp module.
val authenticate :
user_pool_id:string ->
client_id:string ->
username:string ->
password:string ->
(Awso_cognito_idp_async.RespondToAuthChallengeResponse.t,
[ `Initiate_auth of Awso_cognito_idp_async.InitiateAuthResponse.error
| `Respond_to_auth_challenge of
Awso_cognito_idp_async.RespondToAuthChallengeResponse.error ])
Core.Result.t
Async.Deferred.tAuthenticates a user with name username and password belonging to user pool user_pool_id with client id client_id using the AWS Cognito Secure Remote Password (SRP) protocol.
Upon successful authentication an authentication token is produced along with other session information in the `Ok .. condition.
Otherwise, a specific error variant indicates the authentication issue.