Create a centralized Authentication and Authorization token server. Easily secure FastAPI endpoints based on Users, Groups, Roles or Permissions with very little database usage.
In case you want to avoid RIW, you might have a look into https://github.com/codemation/easyauth - easyauth creates an admin user, if there are no other users in the DB, a sort of new config detection. The admin password is then printed in the logs, requiring / suggesting that you change ASAP or risk forgetting it. easyauth also has a system of subsequent new user registration, which assigns new users to a default set of groups / permissions, this is handy in the case of passwordless auth like (google o auth ).
Authorization & Authentication with EasyAuth
2 projects | reddit.com/r/FastAPI | 22 Nov 2021
Questions around do's and don'ts for unauthenticated writes
1 project | reddit.com/r/Supabase | 6 Apr 2022
My open source contribution to Supabase.
1 project | dev.to | 16 Mar 2022
New user. Migrations? Seed data? Local dev db? Prisma?
1 project | reddit.com/r/Supabase | 6 Feb 2022
Open source authentication and authorization solution
2 projects | reddit.com/r/golang | 4 Feb 2022