Implement Multi-Tenancy in API using Fief and FastAPI #504
Unanswered
ruipoliveira
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I am working on implementing multi-tenancy in my API using Fief and FastAPI.
The
GET /auth/my
endpoint is designed to retrieve user information and validate access permissions through Fief.security
variable contains a list ofFiefAuth
instances, one for each tenant. Theget_auth(tenant:str)
method returns the corresponding instance for the specified tenant.How can I inject the
tenant
variable with a default value of'dummy-tenant'
? Are there any potential issues with this implementation?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions