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

Issue with cognito auth sdk? #117

Open ashrithbg opened 6 years ago

ashrithbg commented 6 years ago

I'm building a SPA with Angular and using a custom SAML provider with Cognito. Cognito finally redirects to my application correctly with id_token and access_token but however this is the format of the redirect url

https:///#/access_token=&id_token=

Do notice the extra "/" after the "#"(fragment). This basically breaks the parseCognitoWebResponse function and I had to modify the url before parseCognitoWebResponse consumes it.

Is this something anyone else faced? As far as I know, this is not an issue with the SPA app and is mostly coming from the js auth sdk