Authorization Series - Pt 3: Dynamic Authorization with GraphQL and Rules

bachiauth0 profile image Bachi Originally published at auth0.com ・1 min read

TL;DR: In this article we're going to demonstrate how we can use Flask to build a GraphQL API that can create and return flexible and meaningful data. First we'll setup our backend using Flask and an SQLite database. Next we'll bring in GraphQL to build an API that will allow us to interact with quidditch teams, players, and games. Finally we'll demonstrate the value this graph-based database modeling can bring to our application by testing out two different authorization models to extend permissions to players from the Auth0 dashboard.

All code for this application can be found on GitHub. If you want to jump right in, just clone the repository and follow the instructions in the README to run the application.

Continue Reading 📖

Posted on by:


Auth0 offers an identity and access management solution that works out of the box from day one, with the ability to customize, extend, and build new features when you need them. Identity might be complex, but dealing with it shouldn’t be.


Editor guide