Skip to content
This repository has been archived by the owner on May 1, 2019. It is now read-only.

New API returns short access_token and no id_token by default and breaks Lock #132

Closed
dinvlad opened this issue Mar 10, 2017 · 2 comments
Closed

Comments

@dinvlad
Copy link

dinvlad commented Mar 10, 2017

Hi all,

My passwordless Lock suddenly stopped working (without any changes on my part) because the new authentication API apparently returns a short access_token and no id_token by default. As a result of that and #130, this change breaks Lock if we rely on the old behavior (incl. using parseHash() and getProfile() that both expect an id_token).

Could this Lock be updated according to the new API?

EDIT: this behavior is happening to a stock configuration of Lock. If we specify audience, the return access_token is "fat" but there's no id_token in either case (and that one is required by parseHash() and getProfile()).

Thanks

@dinvlad
Copy link
Author

dinvlad commented Mar 10, 2017

False alarm, it turns out that I checked strict OIDC conformity in my client settings, which led to this behavior (namely returning only a short access_token when I don't specify an audience)

@dinvlad dinvlad closed this as completed Mar 10, 2017
@hyena
Copy link

hyena commented Jun 21, 2017

Is it just me or does the documentation on https://auth0.com/docs/client-auth/current/server-side-web#exchange-the-code-for-an-id_token request strict OIDC conformity and yet the example exchange code for e.g. cUrl doesn't specify an audience and hence doesn't retrieve an id_token?

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

2 participants