For more information, see Admin authentication flow. USER_PASSWORD_AUTH is a flow type of InitiateAuth and isn't valid for AdminInitiateAuth. Type: String Valid Values: USER_SRP_AUTH | REFRESH_TOKEN_AUTH | REFRESH_TOKEN | CUSTOM_AUTH | ADMIN_NO_SRP_AUTH | USER_PASSWORD_AUTH | ADMIN_...
adminInitiateAuth: constpayload={UserPoolId:userPoolId,AuthFlow:"ADMIN_NO_SRP_AUTH",ClientId:cognitoClientId,AuthParameters:{USERNAME:username,PASSWORD:password,SECRET_HASH:generateSignature(username)}}constresponse=await cognitoClient.adminInitiateAuth(payload).promise(); 你可以看到不同之处在于不同的Au...
AdminInitiateAuthResultclone() booleanequals(Objectobj) AuthenticationResultTypegetAuthenticationResult() The result of the authentication response. StringgetChallengeName() The name of the challenge that you're responding to with this call. Map<String,String>getChallengeParameters() ...
我正在使用以下库:https://www.npmjs.com/package/amazon-user-pool-srp-client 安装库 ...
returns>publicasyncTask<string>AdminInitiateAuthAsync(stringclientId,stringuserPoolId,stringuserName,stringpassword){varauthParameters =newDictionary<string,string>(); authParameters.Add("USERNAME", userName); authParameters.Add("PASSWORD", password);varrequest =newAdm...
This happens because, in the AdminRespondToAuthChallenge API ChallengeResponses, the USERNAME attribute can't be an alias. Returns: (Hash<String,String>) #session ⇒ String The session that should be passed both ways in challenge-response calls to the service. If AdminInitiate...