I'm working on a project with a FastAPI backend and a React front end, and I'm struggling with how to manage user logins, credentials, and permissions. I keep resorting to building everything from scratch, but I wonder if there are better solutions out there. What are some popular options that people are using?
7 Answers
Have you considered using Armasec? It's super easy to configure and might save you a lot of hassle! Here's a link: https://github.com/omnivector-solutions/armasec
Supabase is another option. In my experience, it's pretty straightforward to use for authentication.
I recently set up Auth0 with Keycloak, and it was pretty straightforward. It has some nice features that might help you manage your user authentication.
There's also the full-stack FastAPI template that you can find here: https://github.com/fastapi/full-stack-fastapi-template. If you're open to it, using Keycloak could simplify things for user management. You can either redirect users to a Keycloak login screen or create a custom one and use their APIs.
You might want to check out Fief. I just heard about it, and it could fit your needs perfectly.
I hadn't heard of that yet! Thanks for the suggestion—I'm trying to avoid the overhead of managing tokens and permissions all by myself.
If you're looking for something easy to use, I went with Propelauth after checking out different solutions. It’s budget-friendly and not too complicated to implement.
I usually start with Django for its built-in features, as it could save you from implementing a lot of functionality you might end up coding into FastAPI. But hey, if you enjoy building it yourself, that's totally cool!
Yeah, I've found the role authorization feature useful for my needs too!