truqu / elm-oauth2

OAuth 2.0 client-side utils in Elm
MIT License
81 stars 29 forks source link

Claims from id_token #7

Closed razzeee closed 6 years ago

razzeee commented 6 years ago

Would you be able to extract the claims from the id_token? See specification here: https://auth0.com/docs/tokens/id-token

This might be of some help to decode, but doesn't seem to return claims at this stage. http://package.elm-lang.org/packages/ktonon/elm-jsonwebtoken/1.0.2/JsonWebToken

KtorZ commented 6 years ago

Well, id_tokens are out of scope here (no pun intended). This library is an implementation of the OAuth 2.0 protocol. Identity Tokens are part of the OpenID & OpenID Connect protocols which are built on top of OAuth 2.0.

razzeee commented 6 years ago

Feared that you might say that. Thank you :)