We should decided “User pool” or “Identity pool”.
Here is the official blog post about the differences.
https://aws.amazon.com/de/premiumsupport/knowledge-center/cognito-user-pools-identity-pools/
In a nut shell, User pools are for authentication (identify verification), and Identity pools are for authorization (access control).
I’ll try an User pool.
Future scope: integrate with AppSync.
I followed the link. Very easy.
https://docs.aws.amazon.com/cognito/latest/developerguide/tutorial-create-user-pool.html
atlex00-test
, and Review defaults.test01
, Check “E-Mail”, empty Temporäres Passwort.no-reply@verificationemail.com
atlex00-test-Client
{{ app_client_id }}
http://localhost/top
http://localhost/sign-out
atlex00-test
After the instructions above, I could access the following URL.
https://atlex00-test.auth.us-east-1.amazoncognito.com/login?response_type=code&client_id={{ app_client_id }}&redirect_uri=http://localhost/top`
When I login to with the account which I created, it prompted me to change the default password.
After changing the password, it redirect me to the callback URL with authorization code parameter!
http://localhost/top?code=d8ff3e19-3f88-4567-aaa0-6657463b6152