fedocal: specify the scopes when querying oidc
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
cfafe0b3cd
commit
68a5ab292f
1 changed files with 10 additions and 0 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue