ipsilon oidc scope for modernpaste

Signed-off-by: Ricky Elrod <relrod@redhat.com>
This commit is contained in:
Ricky Elrod 2018-04-04 19:37:08 +00:00
parent a9d58375f6
commit 5f12f40dfb
3 changed files with 17 additions and 2 deletions

View file

@ -0,0 +1,14 @@
from __future__ import absolute_import
from ipsilon.providers.openidc.plugins.common import OpenidCExtensionBase
class OpenidCExtension(OpenidCExtensionBase):
name = 'modernpaste'
display_name = 'Modern Paste'
scopes = {
'https://paste.fedoraproject.org/' {
'display_name': 'authenticated modernpaste access',
'claims': [],
},
}

View file

@ -61,7 +61,8 @@
dest=/usr/lib/python2.7/site-packages/ipsilon/providers/openidc/plugins/{{item}}.py
owner=root group=root mode=0644
when: env == "staging"
with_items: []
with_items:
- modernpaste
notify:
- reload apache
tags:

View file

@ -25,7 +25,7 @@ global enabled=persona,openid,saml2,openidc
{% if env == "production" %}
openidc enabled extensions=fedora-account,mbs,beaker,waiverdb,odcs,wiki,freshmaker,src
{% else %}
openidc enabled extensions=fedora-account,mbs,beaker,waiverdb,odcs,wiki,freshmaker,src
openidc enabled extensions=fedora-account,mbs,beaker,waiverdb,odcs,wiki,freshmaker,src,modernpaste
{% endif %}
{% if env == 'staging' %}