C# all fantastic except i must be such a dummy i cannot see anywhere in this awesome forum or the help guide online after 4 hours of looking any simple examples relating to this so it must be so easy no one ever asked
I have an Auth0 Tenant setup.
Default DB Connection
A user exists in there which authenticates perfectly and i can list the claims
The user has 3 roles assigned.
But i am unable to verify this in the client end but its there configured plain as day in the server end -
To understand what im doing and missing out- roughly the code flow is like this:
Auth0ClientOptions clientOptions = new Auth0ClientOptions
Domain = “XYZ.auth0.com”,
ClientId = “#########ClientID#########”
client = new Auth0Client(clientOptions);
clientOptions.PostLogoutRedirectUri = clientOptions.RedirectUri;
LoginResult loginResult = await client.LoginAsync();
if (loginResult.IsError) return;
—if still here all good yes we do get to here
–Now i want to test for user in role so we can do some conditional flow
bool isAdmin = loginResult.User.IsInRole(“RoleAdmin”));
Problem: isAdmin is always false even though this is set up server side…
NOTE: Permissions in Roles
Caveat? the Roles have no permissions in and i cant add any that too is past my meager IQ atm
maybe the lack of permissions is to blame in the role… or i am utterly completely lost
“Select permissions from existing APIs:” when i do this there are none an to add a simple list is not feasible.
any help extremely grateful!!!