mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-11-29 23:35:56 +08:00
Add src.fp.o OIDC push OIDC scope
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
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
|
||||
- wiki
|
||||
- freshmaker
|
||||
- src
|
||||
notify:
|
||||
- reload apache
|
||||
tags:
|
||||
|
||||
@@ -23,9 +23,9 @@ global enabled=allow
|
||||
global enabled=persona,openid,saml2,openidc
|
||||
|
||||
{% 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 %}
|
||||
openidc enabled extensions=fedora-account,mbs,beaker,waiverdb,odcs,wiki,freshmaker
|
||||
openidc enabled extensions=fedora-account,mbs,beaker,waiverdb,odcs,wiki,freshmaker,src
|
||||
{% endif %}
|
||||
|
||||
{% if env == 'staging' %}
|
||||
|
||||
Reference in New Issue
Block a user