remove unneeded processors
This commit is contained in:
parent
53918462b6
commit
98cd646044
|
@ -73,9 +73,4 @@ saml_idp:
|
||||||
# List of python packages with provider types to load.
|
# List of python packages with provider types to load.
|
||||||
types:
|
types:
|
||||||
- passbook.saml_idp.processors.generic
|
- passbook.saml_idp.processors.generic
|
||||||
- passbook.saml_idp.processors.aws
|
|
||||||
- passbook.saml_idp.processors.gitlab
|
|
||||||
- passbook.saml_idp.processors.nextcloud
|
|
||||||
- passbook.saml_idp.processors.salesforce
|
- passbook.saml_idp.processors.salesforce
|
||||||
- passbook.saml_idp.processors.shibboleth
|
|
||||||
- passbook.saml_idp.processors.wordpress_orange
|
|
||||||
|
|
|
@ -134,9 +134,4 @@ data:
|
||||||
# List of python packages with provider types to load.
|
# List of python packages with provider types to load.
|
||||||
types:
|
types:
|
||||||
- passbook.saml_idp.processors.generic
|
- passbook.saml_idp.processors.generic
|
||||||
- passbook.saml_idp.processors.aws
|
|
||||||
- passbook.saml_idp.processors.gitlab
|
|
||||||
- passbook.saml_idp.processors.nextcloud
|
|
||||||
- passbook.saml_idp.processors.salesforce
|
- passbook.saml_idp.processors.salesforce
|
||||||
- passbook.saml_idp.processors.shibboleth
|
|
||||||
- passbook.saml_idp.processors.wordpress_orange
|
|
||||||
|
|
|
@ -95,10 +95,4 @@ saml_idp:
|
||||||
# List of python packages with provider types to load.
|
# List of python packages with provider types to load.
|
||||||
types:
|
types:
|
||||||
- passbook.saml_idp.processors.generic
|
- passbook.saml_idp.processors.generic
|
||||||
- passbook.saml_idp.processors.aws
|
|
||||||
- passbook.saml_idp.processors.gitlab
|
|
||||||
- passbook.saml_idp.processors.nextcloud
|
|
||||||
- passbook.saml_idp.processors.salesforce
|
- passbook.saml_idp.processors.salesforce
|
||||||
- passbook.saml_idp.processors.shibboleth
|
|
||||||
- passbook.saml_idp.processors.wordpress_orange
|
|
||||||
- passbook.saml_idp.processors.rancher
|
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
"""AWS Processor"""
|
|
||||||
|
|
||||||
from passbook.saml_idp.base import Processor, xml_render
|
|
||||||
|
|
||||||
|
|
||||||
class AWSProcessor(Processor):
|
|
||||||
"""AWS Response Handler Processor for testing against django-saml2-sp."""
|
|
||||||
|
|
||||||
def _determine_audience(self):
|
|
||||||
self._audience = 'urn:amazon:webservices'
|
|
||||||
|
|
||||||
def _format_assertion(self):
|
|
||||||
"""Formats _assertion_params as _assertion_xml."""
|
|
||||||
super()._format_assertion()
|
|
||||||
self._assertion_params['ATTRIBUTES'].append(
|
|
||||||
{
|
|
||||||
'Name': 'https://aws.amazon.com/SAML/Attributes/RoleSessionName',
|
|
||||||
'Value': self._django_request.user.username,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
self._assertion_xml = xml_render.get_assertion_xml(
|
|
||||||
'saml/xml/assertions/generic.xml', self._assertion_params, signed=True)
|
|
|
@ -1,10 +0,0 @@
|
||||||
"""GitLab Processor"""
|
|
||||||
|
|
||||||
from passbook.saml_idp.base import Processor
|
|
||||||
|
|
||||||
|
|
||||||
class GitLabProcessor(Processor):
|
|
||||||
"""GitLab Response Handler Processor for testing against django-saml2-sp."""
|
|
||||||
|
|
||||||
def _determine_audience(self):
|
|
||||||
self._audience = self._remote.acs_url.replace('/users/auth/saml/callback', '')
|
|
|
@ -1,11 +0,0 @@
|
||||||
"""NextCloud Processor"""
|
|
||||||
from passbook.saml_idp.base import Processor
|
|
||||||
|
|
||||||
|
|
||||||
class NextCloudProcessor(Processor):
|
|
||||||
"""Nextcloud SAML 2.0 AuthnRequest to Response Handler Processor."""
|
|
||||||
|
|
||||||
def _determine_audience(self):
|
|
||||||
# Nextcloud expects an audience in this format
|
|
||||||
# https://<host>/index.php/apps/user_saml/saml/metadata
|
|
||||||
self._audience = self._remote.acs_url.replace('acs', 'metadata')
|
|
|
@ -1,11 +0,0 @@
|
||||||
"""Rancher Processor"""
|
|
||||||
from passbook.saml_idp.base import Processor
|
|
||||||
|
|
||||||
|
|
||||||
class RancherProcessor(Processor):
|
|
||||||
"""Rancher SAML 2.0 AuthnRequest to Response Handler Processor."""
|
|
||||||
|
|
||||||
def _determine_audience(self):
|
|
||||||
# Rancher expects an audience in this format
|
|
||||||
# https://<host>/v1-saml/adfs/saml/acs
|
|
||||||
self._audience = self._remote.acs_url.replace('acs', 'metadata')
|
|
|
@ -1,11 +0,0 @@
|
||||||
"""Shibboleth Processor"""
|
|
||||||
|
|
||||||
from passbook.saml_idp.base import Processor
|
|
||||||
|
|
||||||
|
|
||||||
class ShibbolethProcessor(Processor):
|
|
||||||
"""Shibboleth-specific Processor"""
|
|
||||||
|
|
||||||
def _determine_audience(self):
|
|
||||||
"""Determines the _audience."""
|
|
||||||
self._audience = "https://sp.testshib.org/shibboleth-sp"
|
|
|
@ -1,13 +0,0 @@
|
||||||
"""WordpressOrange Processor"""
|
|
||||||
|
|
||||||
from passbook.saml_idp.base import Processor
|
|
||||||
|
|
||||||
|
|
||||||
class WordpressOrangeProcessor(Processor):
|
|
||||||
"""WordpressOrange Response Handler Processor for testing against django-saml2-sp."""
|
|
||||||
|
|
||||||
def _determine_audience(self):
|
|
||||||
# Orange expects an audience in this format
|
|
||||||
# https://<host>/wp-content/plugins/miniorange-saml-20-single-sign-on/
|
|
||||||
self._audience = self._remote.acs_url + \
|
|
||||||
'wp-content/plugins/miniorange-saml-20-single-sign-on/'
|
|
Reference in New Issue