Skip to content

Commit

Permalink
fix: cr
Browse files Browse the repository at this point in the history
  • Loading branch information
nannan00 committed Aug 1, 2024
1 parent 4427e48 commit 11a3d9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bk-user/bkuser/apis/login/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ def _get_unique_enabled_tenant_idp() -> Dict | None:

idp = idps[0]
# 协同情况处理
# 非实名数据源不可被协同, 则说明是唯一认证源了
# 如果唯一 IDP 关联的数据源是非实名的,则说明该 IDP 只会被用于本租户,不会有其他租户协同的使用
# 协同限制:非实名数据源不可被协同
if not DataSource.objects.filter(id=idp["data_source_id"], type=DataSourceTypeEnum.REAL).exists():
return idp

Expand Down

0 comments on commit 11a3d9f

Please sign in to comment.