How to Specify tenantId for OIDC Authentication with signInWithProvider in Multi-Tenancy on Android #13252
Unanswered
dosukoi-android
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.
-
I am implementing OIDC authentication in a multi-tenancy application using FlutterFire. I encountered an issue when trying to specify the tenantId during authentication using the signInWithProvider method on Android.
In the current implementation, the platform interface provides signInWithProvider, and the following code is used to initiate the provider:
However, newBuilder internally calls FirebaseAuth.getInstance(), which does not allow for specifying a tenantId. This is critical for my multi-tenancy setup where each tenant requires separate OIDC authentication.
Question: How can I specify the tenantId when using signInWithProvider in this context? Is there an alternative approach or workaround that would allow me to achieve this?
Environment:
Firebase Auth version: 5.1.4
Platform: Android
Any guidance or suggestions would be greatly appreciated. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions