Skip to content

Add missing id_token fields#34

Merged
cottinisimone merged 1 commit intomasterfrom
add-missing-user-info-fields
Nov 17, 2022
Merged

Add missing id_token fields#34
cottinisimone merged 1 commit intomasterfrom
add-missing-user-info-fields

Conversation

@luca-iachini
Copy link
Contributor

@luca-iachini luca-iachini commented Nov 7, 2022

This PR aims to add all the id_token fields returned by the actual Auth0. The following is an example of an id_token (I masked the sensible fields):

{
    "given_name": "Luca ",
    "family_name": "Iachini",
    "nickname": "luca.iachini",
    "name": "Luca Iachini",
    "picture": "https://lh3.googleusercontent.com/a/<image_id>",
    "locale": "it",
    "updated_at": "2022-11-02T12:24:05.399Z",
    "email": "luca.iachini@prima.it",
    "email_verified": true,
    "iss": "https://auth0.com/",
    "sub": "google-oauth2|<google_id>",
    "aud": "<client_d>",
    "iat": 1667391859,
    "exp": 1667427859,
    "sid": "<session_id>",
    "nonce": "<random_nonce>"
}

This PR also introduces the nonce exchange for the Code flow.

add user_info field that are returned by Auth0.
@luca-iachini luca-iachini changed the title Add missing user info fields Add missing id_token fields Nov 7, 2022
Copy link
Contributor

@Kad-Jon Kad-Jon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cottinisimone cottinisimone merged commit 2da385c into master Nov 17, 2022
@cottinisimone cottinisimone deleted the add-missing-user-info-fields branch November 17, 2022 10:03
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

Successfully merging this pull request may close these issues.

3 participants