-
-
Save kainlite/5767456c5ead946634450893f39f6c59 to your computer and use it in GitHub Desktop.
AWS Cognito Identity authenticate using cURL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AuthParameters" : { | |
"USERNAME" : "alice@example.com", | |
"PASSWORD" : "mysecret" | |
}, | |
"AuthFlow" : "USER_PASSWORD_AUTH", | |
"ClientId" : "9..............." | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST --data @auth.json \ | |
-H 'X-Amz-Target: AWSCognitoIdentityProviderService.InitiateAuth' \ | |
-H 'Content-Type: application/x-amz-json-1.1' \ | |
https://cognito-idp.us-east-1.amazonaws.com/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dashboard -> "App Clients" -> "Show Details" -> check "Enable username-password (non-SRP) flow for app-based authentication (USER_PASSWORD_AUTH)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment