firebase-admin-python icon indicating copy to clipboard operation
firebase-admin-python copied to clipboard

Allow default provider config for tenants

Open sww314 opened this issue 3 years ago • 2 comments

I am using the python admin SDK to create tenants, but I can not manage the "default" providers. Only add new SAML and OIDC providers.

            tenant = tenant_mgt.create_tenant(
                tenant_name,
                allow_password_sign_up=True,
                enable_email_link_sign_in=False,
                app=app,
            )
            
          auth = tenant_mgt.auth_for_tenant(tenant.tenant_id)
          
          # No way to do this ???
          providers = auth.get_providers()
          # enable/setup Google provider

Now I have to go in the UI and click a button. Which defeats the purposes of creating the tenant programmatically if I still have to set it up by hand.

This is what I am trying to change: Screen Shot 2022-09-16 at 5 20 02 PM

EDIT: You can set allow_password_sign_up=True and it will enable Email/Password, but unsure how to handle the other Providers. We use the Google Provider as an internal app for our own login as we are on Google Workspace.

sww314 avatar Sep 16 '22 22:09 sww314

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Sep 16 '22 22:09 google-oss-bot