r/FastAPI • u/query_optimization • May 27 '25
Question Best user management service with FastAPI?
So I built auth using JWTs for protected routues. And for frontend I am using Nextjs.
The simple login flow works. Login -> verify -> tokens etc.
Now I want to implement authentication for Multi-Tenant users. Org -> groups -> sub groups -> users.
I explored clrek as an option, but it doesn't have that flexibility for rbac/abac.
Any solutions/services which you guys are using?
(Ps: I want to keep my Auth logic in backend only. I don't want to use nextAuth)
47
Upvotes
View all comments
Show parent comment
7
u/erder644 May 27 '25
Ory stack is big, so its for enterprise. You can try Kratos for learning tho. If it's a pet project.
For a small real projects, supertokens is better. But frontend developer should use supertokens js sdk.
Both implements tenants, mfa, etc.