Add src.fp.o OIDC push OIDC scope
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
parent
3c27e5a250
commit
de9af8deda
3 changed files with 17 additions and 2 deletions
14
roles/ipsilon/files/oidc_scopes/src.py
Normal file
14
roles/ipsilon/files/oidc_scopes/src.py
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
from __future__ import absolute_import
|
||||||
|
|
||||||
|
from ipsilon.providers.openidc.plugins.common import OpenidCExtensionBase
|
||||||
|
|
||||||
|
|
||||||
|
class OpenidCExtension(OpenidCExtensionBase):
|
||||||
|
name = 'src'
|
||||||
|
display_name = 'Dist-Git'
|
||||||
|
scopes = {
|
||||||
|
'https://src.fedoraproject.org/push': {
|
||||||
|
'display_name': 'Push to Fedora Dist-Git',
|
||||||
|
'claims': [],
|
||||||
|
},
|
||||||
|
}
|
|
@ -49,6 +49,7 @@
|
||||||
- odcs
|
- odcs
|
||||||
- wiki
|
- wiki
|
||||||
- freshmaker
|
- freshmaker
|
||||||
|
- src
|
||||||
notify:
|
notify:
|
||||||
- reload apache
|
- reload apache
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -23,9 +23,9 @@ global enabled=allow
|
||||||
global enabled=persona,openid,saml2,openidc
|
global enabled=persona,openid,saml2,openidc
|
||||||
|
|
||||||
{% if env == "production" %}
|
{% if env == "production" %}
|
||||||
openidc enabled extensions=fedora-account,mbs,beaker,waiverdb,odcs,wiki,freshmaker
|
openidc enabled extensions=fedora-account,mbs,beaker,waiverdb,odcs,wiki,freshmaker,src
|
||||||
{% else %}
|
{% else %}
|
||||||
openidc enabled extensions=fedora-account,mbs,beaker,waiverdb,odcs,wiki,freshmaker
|
openidc enabled extensions=fedora-account,mbs,beaker,waiverdb,odcs,wiki,freshmaker,src
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if env == 'staging' %}
|
{% if env == 'staging' %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue