How to get the roles from a FastAPI based REST service

I have enabled RBAC and my Angular frontend is using the roles for UI interaction. Now our Fast API Rest is only getting the list of scopes from the token.

Maybe because I am using the library ‘fastapi-auth0’ from GitHub (dorinclisu) is only extracting scopes, but how can I send/use role information to the FastAPI backend?

1 Like