Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Extracting access_token from popup URL query string includes hash in property name #223

Closed
photomoose opened this issue Aug 2, 2016 · 0 comments

Comments

@photomoose
Copy link
Contributor

After a successful authentication with Identity Server, the popup window is redirected with the access_token being a hash fragment in the URL rather than a query parameter.

aurelia-authentication appears to not consider hash fragments and so the '#' character is included in the property name of the resulting object when the URL is parsed:

image

This is preventing aurelia-authentication from being able to extract the access_token.

aurelia-auth, on the other hand, seems to have this covered:
https://github.com/paulvanbladel/aurelia-auth/blob/3794943c53e70ace74c05c5e574a0e511383edf3/src/popup.js#L80

photomoose added a commit to photomoose/aurelia-authentication that referenced this issue Aug 2, 2016
photomoose added a commit to photomoose/aurelia-authentication that referenced this issue Aug 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant