mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-11 10:32:27 +08:00
fedocal: specify the scopes when querying oidc
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user