javascript - How to use the code returned from Cognito to get AWS credentials? -


right now, i'm struggling understand aws cognito maybe me out. set domain serve cognito's hosted ui user pool what's described here. when go https://<my-domain>.auth.us-east-1.amazoncognito.com/login?response_type=code&client_id=<my_pool_client_id>&redirect_uri=https://localhost:8080 login page users can login app google. part working great.

i confused code returned page once user logs in. once redirected google , authorize application view information, redirected 1 of urls code in query params. right i'm redirecting localhost, redirect url this:

https://localhost:8080/?code=xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx

what code? also, how use access aws resources user?

you can find "authorization code grant" in doc :http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-app-idp-settings.html


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -