From 2bf327970b9f9270d6d5453a68b31fa835d22392 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Mon, 9 Jul 2018 18:30:45 +0200 Subject: [PATCH] [enh] allow an application to optout of sso --- src/yunohost/app.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/yunohost/app.py b/src/yunohost/app.py index a90915778..3c654cbe5 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -399,6 +399,8 @@ def app_map(app=None, raw=False, user=None): continue if 'domain' not in app_settings: 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 ('mode' not in app_settings or ('mode' in app_settings @@ -1291,6 +1293,10 @@ def app_ssowatconf(auth): for app in apps_list: with open(APPS_SETTING_PATH + app['id'] + '/settings.yml') as f: app_settings = yaml.load(f) + + if 'no_sso' in app_settings: + continue + for item in _get_setting(app_settings, 'skipped_uris'): if item[-1:] == '/': item = item[:-1]