I am using Auth0 for ASP.Net (MVC) project and following the below article:
With this article, i am able to login and logout the user from ASP.Net web project. My application has the role-based user rendering where there is an Admin and normal user.
I added a role from the Auth0 dashboard and assigned it to one of my users but I am not getting this role in the Login response.
I looked into the documentation but did not find much, I found one link where it was mentioned how to get the roles: https://auth0.com/docs/api/management/guides/users/view-user-roles.
Bt this link seems to be for the applications that are using API authentication mechanism who has the access to the token and userid. in my case, Auth0 is setting the token in the cookies it self so i do not have the access to get the token and use this API to get the role and it seem bit weird to me for getting roles in this way from the Auth0, there must be the better way for doing this and would be really good if I get a way to get it in the login call itself.
any help will be really helpful. Thank you.