amazon-archives / amazon-cognito-auth-js

The Amazon Cognito Auth SDK for JavaScript simplifies adding sign-up, sign-in with user profile functionality to web apps.
Apache License 2.0
423 stars 232 forks source link

Confused about Cognito documentation #50

Open jaxondu opened 6 years ago

jaxondu commented 6 years ago

Reading the Getting Started with Cognito hosted UI doc http://docs.aws.amazon.com/cognito/latest/developerguide/getting-started.html. In it it says one can directly access the Conito Auth API by using for example "https://.auth..amazoncognito.com/authorize?" endpoint. In the page there is a link to read more about Amazon Cognito Auth API Reference. But the documentation on AUTHORIZATION Endpoint says to use a different longer URL "The /oauth2/authorize endpoint signs the user in." Are these two the same end point or the Getting Started doc is linking to a different API doc?

jonasao commented 6 years ago

The AWS Cognito documentation is outdated and confusing..... Hopefully they will address this issue soon, followed by examples.

g-combs commented 6 years ago

I am glad I am not the only one that feels this way.

yuntuowang commented 6 years ago

Both "/oauth2/authorize" and "/authorize" will work, but we recommend you use "/oauth2/authorize". For example: [web domain you set in cognito user pool]/oauth2/authorize?response_type=token&client_id=**&redirect_uri=https://www.google.com

yuntuowang commented 6 years ago

Hi, @jaxondu, as I mentioned above, we recommend using "/oauth2/authorize". Both two doc links has been updated to "/oauth2/authorize". Do we still encounter any other confusing part here?