FastAPI/Python Authorization: API Role-Based Access Control

This Python code sample demonstrates how to implement Role-Based Access Control (RBAC) in a FastAPI server using Auth0.

1 Like

This is mostly really good. However, I found the start of this a bit unclear - it gives the identifier as https://hello-world.example.com, but then asks for an id to be immediately pasted back in… which is the same value. It was only through creating the vue frontend I could see that the audience value there was a URL rather than a string of chars…

1 Like