Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to parse an id_token parameter in the response #102

Open
marschaeffer opened this issue Aug 30, 2019 · 3 comments
Open

How to parse an id_token parameter in the response #102

marschaeffer opened this issue Aug 30, 2019 · 3 comments

Comments

@marschaeffer
Copy link

marschaeffer commented Aug 30, 2019

Our keycloak returns an auth-token via the "id_token" parameter after login, but src/JSO.js:278 parses only the "access_token" parameter in the url.

jso/src/JSO.js

Line 278 in b1be102

if (response.hasOwnProperty("access_token")) {

Is there some advice how to make parsing an id_token possible with JSO (response_type=id_token)?
Thanks!

@ViltusVilks
Copy link

Have you found solution? I have same problem with (latest) Keycloak.. Auth flow is ok untill comes back to callback URI with this error.

@marschaeffer
Copy link
Author

@ViltusVilks I copy/pasted JSO.js in my project and changed it to my needs. Actually too specific changes to open a PR.
(Please be aware that it is not recommended to store tokens in the browsers storage, like JSO does. I moved to auth0-spa-js, but needed to change a lot there as well (it is very specific for auth0 openid software)).

@dosstx
Copy link

dosstx commented Feb 3, 2020

How much did you have to change with auth0? I was looking at that as an alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants