From 68a5ab292fbe2daabbc5bea1c2adcd3ab2766e8f Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Fri, 29 Jan 2021 14:16:48 +0100 Subject: [PATCH] fedocal: specify the scopes when querying oidc Signed-off-by: Pierre-Yves Chibon --- roles/openshift-apps/fedocal/templates/fedocal.cfg | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/openshift-apps/fedocal/templates/fedocal.cfg b/roles/openshift-apps/fedocal/templates/fedocal.cfg index 176b192b38..c48874c7f6 100644 --- a/roles/openshift-apps/fedocal/templates/fedocal.cfg +++ b/roles/openshift-apps/fedocal/templates/fedocal.cfg @@ -52,8 +52,18 @@ APP_URL = 'https://calendar.stg.fedoraproject.org/' + APPLICATION_ROOT FAS_OPENID_ENDPOINT = 'https://id.stg.fedoraproject.org/openid/' SITE_ROOT = 'https://calendar.stg.fedoraproject.org' SITE_URL = '%s/' % SITE_ROOT +OIDC_SCOPES = [ + 'openid', 'email', 'profile', + 'https://id.fedoraproject.org/scope/agreements', + 'https://id.fedoraproject.org/scope/groups', +] {% else %} APP_URL = 'https://calendar.fedoraproject.org/' + APPLICATION_ROOT SITE_ROOT = 'https://calendar.fedoraproject.org' SITE_URL = '%s/' % SITE_ROOT +OIDC_SCOPES = [ + 'openid', 'email', 'profile', + 'https://id.fedoraproject.org/scope/cla', + 'https://id.fedoraproject.org/scope/groups', +] {% endif %}