Auth0 Home Blog Docs

ASPNET Core WEB API access custom claim

claims
webapi
dotnet-core

#1

Hey,

Let’s say I’m adding a custom claim in a rule that goes something like this.

context.idToken[namespace + ‘UserId’] = result[0].UserId;

How do I then access this claims value in my DOT NET CORE Web API?

Cheers