amazon-cognito-auth-js icon indicating copy to clipboard operation
amazon-cognito-auth-js copied to clipboard

Issue with cognito auth sdk?

Open ashrithbg opened this issue 7 years ago • 0 comments

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://<host_name>/#/access_token=<my_access_token>&id_token=<my_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

ashrithbg avatar Apr 24 '18 01:04 ashrithbg