core api User.Identity.Name null/empty, bearer token token generated using "Resource Owner password flow"


I try to pay around Auth0 and ASP.Net Core WebAPI, configurations are done correctly and I can able to generate a bearer access token based on article Call Your API Using Resource Owner Password Flow

I have below lines of code in Startup.cs file

In my controller, I see the user is authenticated and couple of claims information also presents.

I would like to capture user email address and name, but from User.Claims or Context.User.Indentity.Name giving null.

how to extract user details who is authenticated already , please help me in this regards.

Hi @rameshbolla

Welcome to the Auth0 Community!

If you inspect the token (you can use do you see the name and email claims you are looking for?

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