firebase / firebase/firebase-admin-python

Allow default provider config for tenants

未关闭
#644 2 条评论 0 个 reaction 已指派 1 人 已被 @prameshj 认领 在 GitHub 查看
api: auth
主要语言
Python
星标
1.2k
派生
359
平均合并
5 天 6 分钟
30 天内合并 PR
2

描述

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.

```python
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](https://user-images.githubusercontent.com/1430264/190821692-97ce4773-56aa-4d46-99c4-84e6d6462f02.png)

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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。