File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -58,14 +58,19 @@ def on_starting(server=None):
5858 IdentityManagerTypes .DB .value ,
5959 IdentityManagerTypes .NOAUTH .value ,
6060 IdentityManagerTypes .OAUTH2PROXY .value ,
61+ IdentityManagerTypes .ONELOGIN .value ,
6162 "no_auth" , # backwards compatibility
6263 "single_tenant" , # backwards compatibility
6364 ]:
65+ excluded_from_default_user = [
66+ IdentityManagerTypes .OAUTH2PROXY .value ,
67+ IdentityManagerTypes .ONELOGIN .value ,
68+ ]
6469 # for oauth2proxy, we don't want to create the default user
6570 try_create_single_tenant (
6671 SINGLE_TENANT_UUID ,
6772 create_default_user = (
68- False if AUTH_TYPE == IdentityManagerTypes . OAUTH2PROXY . value else True
73+ False if AUTH_TYPE in excluded_from_default_user else True
6974 ),
7075 )
7176
You can’t perform that action at this time.
0 commit comments