Skip to content

Auth0 provider doesn't attribute all the values to goth.User #430

@justman00

Description

@justman00

Hey,

so I noticed that Auth0 is sending some more data back, e.g:

{
        "email": "email@example.com",
        "email_verified": true,
        "family_name": "Example",
        "given_name": "Example",
        "locale": "en",
        "name": "Example Example",
        "nickname": "example.example",
        "picture": "<picture url>",
        "sub": "google id or other provider id",
        "updated_at": "2021-10-21T08:52:15.784Z"
    }

but the provider seems to be reading only these values:

type auth0UserResp struct  {
	Name      string `json:"name"`
	NickName  string `json:"nickname"`
	Email     string `json:"email"`
	UserID    string `json:"sub"`
	AvatarURL string `json:"picture"`
}

I want to know if other values, such as family_name or given_name are not parsed on purpose because they can be left empty by Auth0 or if it was just overlooked?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions