fastapi-keycloak icon indicating copy to clipboard operation
fastapi-keycloak copied to clipboard

Can we pass dynamic realm, client_id and client_secret params to FastAPIKeycloak class

Open Udayaprasad opened this issue 2 years ago • 0 comments

I am looking for a multi-tenant-based solution, where the customer maintains different realms for different vendors. How could we manage the FastAPIKeycloak() creation and .get_current_user() authentication/authorisation?

Based on the URL I am figuring out the tenant and getting the relevant Database details, but now confused about how we could use the below OIDCUser in the Endpoint definition.

user: OIDCUser = Depends(keycloak_obj.get_current_user())

@yannicschroeer

Udayaprasad avatar Dec 30 '22 16:12 Udayaprasad