fedocal: specify the scopes when querying oidc

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2021-01-29 14:16:48 +01:00
parent cfafe0b3cd
commit 68a5ab292f

View file

@ -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 %}