File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ def create_app(test_config=None):
98
98
app .register_blueprint (auth_routes .bp , url_prefix = '/ui' )
99
99
100
100
# Initialize User Management and Authorization Routes
101
- if 'USER_DOMAIN_PERMITTED' in app .config :
101
+ if 'USER_DOMAIN_PERMITTED' in app .config and not app . config [ 'USER_DOMAIN_PERMITTED' ] == "" :
102
102
DomainUser .set_permitted_domain (app .config ['USER_DOMAIN_PERMITTED' ])
103
103
app .user_mgmt = MongoUserMgmt (app .mmongo , DomainUser )
104
104
else :
Original file line number Diff line number Diff line change 15
15
GOOGLE_DISCOVERY_URL = "https://accounts.google.com/.well-known/openid-configuration"
16
16
17
17
# Use the following key to only allow users from a single domain
18
+ # Leave undefined or "" to allow users to authenticate from all domains
18
19
# USER_DOMAIN_PERMITTED = "example.com"
You can’t perform that action at this time.
0 commit comments