Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core/auth0: custom access token permission claim not working #4588

Open
calebdoxsey opened this issue Sep 26, 2023 · 2 comments
Open

core/auth0: custom access token permission claim not working #4588

calebdoxsey opened this issue Sep 26, 2023 · 2 comments
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.

Comments

@calebdoxsey
Copy link
Contributor

What happened?

It appears that setting a custom claim on the access token in auth0 does not work when passed through.

A custom script in auth0:

api.accessToken.setCustomClaim("abc", ["hehe","haha"]);

With this config

jwt-claim-headers:
   X-Custom-ABC: abc

The claim is not appearing in the JWT assertion.

What did you expect to happen?

For the claim to appear in the JWT assertion.

@calebdoxsey
Copy link
Contributor Author

Possibly this is due to

Access tokens with an Auth0 API audience, excluding the /userinfo endpoint, cannot have private, non-namespaced custom claims

@dennissetiawan
Copy link

I have tried the namespaced custom claim and it is not passed also

@desimone desimone added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

3 participants