mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] allow an application to optout of sso
This commit is contained in:
parent
d27cce4af6
commit
2bf327970b
1 changed files with 6 additions and 0 deletions
|
@ -399,6 +399,8 @@ def app_map(app=None, raw=False, user=None):
|
||||||
continue
|
continue
|
||||||
if 'domain' not in app_settings:
|
if 'domain' not in app_settings:
|
||||||
continue
|
continue
|
||||||
|
if 'no_sso' in app_settings: # I don't think we need to check for the value here
|
||||||
|
continue
|
||||||
if user is not None:
|
if user is not None:
|
||||||
if ('mode' not in app_settings
|
if ('mode' not in app_settings
|
||||||
or ('mode' in app_settings
|
or ('mode' in app_settings
|
||||||
|
@ -1291,6 +1293,10 @@ def app_ssowatconf(auth):
|
||||||
for app in apps_list:
|
for app in apps_list:
|
||||||
with open(APPS_SETTING_PATH + app['id'] + '/settings.yml') as f:
|
with open(APPS_SETTING_PATH + app['id'] + '/settings.yml') as f:
|
||||||
app_settings = yaml.load(f)
|
app_settings = yaml.load(f)
|
||||||
|
|
||||||
|
if 'no_sso' in app_settings:
|
||||||
|
continue
|
||||||
|
|
||||||
for item in _get_setting(app_settings, 'skipped_uris'):
|
for item in _get_setting(app_settings, 'skipped_uris'):
|
||||||
if item[-1:] == '/':
|
if item[-1:] == '/':
|
||||||
item = item[:-1]
|
item = item[:-1]
|
||||||
|
|
Loading…
Add table
Reference in a new issue