Skip to content

Auth0 Authentication Extension #22

@snake575

Description

@snake575

I was testing the extension and found that roles, groups and permissions are not necessarily included on app_metadata.

If one selects the fields on the Token Contents section, then they are included like this:

{ sub: '', iss: '', ... , roles: [], groups: [], permissions: [], }

if one selects the fields on the Persistence section, then they are included like this:

{ sub: '', iss: '', ... , app_metadata: { authorization: { roles: [], groups: [], permissions: [], }, } }

On both cases, it's important to note the one must include roles, groups, permissions or app_metadata on the token's scope on the client app, otherwise none of them are included on the token.

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