How to add custom claim

How to add custom claim:
For example in the doc there is not namespacing claims:
{
“sub”: “1234567890”,
“name”: “John Doe”,
“admin”: true
}

But in the doc it is written:

By default, Auth0 always enforces namespacing; any custom claims with non-namespaced identifiers will be silently excluded from tokens and silently ignored in Actions and Rules.

What does “by default” mean? Is there anything where i can specify it?

Stéphane

Hi @stefdelec ,

Custom namespacing is enforced for any additional custom claims you wish to add to tokens, i.e. ones you add via Rules or Actions.

There isn’t a way to modify this behaviour I’m afraid, anything not returned in the standard tokens you can fetch via standard scopes would need to be added with a custom namespace via a rule or action.

Please let me know if you have any further queries on this

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.