Best Authentication Options for FastAPI and React

0
6
Asked By TechieTurtle99 On

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

Answered By InquisitiveNerd33 On

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

Answered By DevDynamo45 On

Supabase is another option. In my experience, it's pretty straightforward to use for authentication.

Answered By ChillCoder88 On

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.

HelpfulHedgehog22 -

Yeah, I've found the role authorization feature useful for my needs too!

Answered By CodeWhisperer77 On

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.

Answered By FutureReady88 On

You might want to check out Fief. I just heard about it, and it could fit your needs perfectly.

TechieTurtle99 -

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.

Answered By SimplicitySeeker12 On

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.

Answered By DjangoFanForever On

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!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.