This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2018-11-16 09:08:15 +00:00
|
|
|
"""Salesforce Processor"""
|
2018-11-16 08:10:35 +00:00
|
|
|
|
2018-11-16 09:08:15 +00:00
|
|
|
from passbook.saml_idp.base import Processor
|
|
|
|
from passbook.saml_idp.xml_render import get_assertion_xml
|
2018-11-16 08:10:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
class SalesForceProcessor(Processor):
|
2018-11-16 09:08:15 +00:00
|
|
|
"""SalesForce.com-specific SAML 2.0 AuthnRequest to Response Handler Processor."""
|
2018-11-16 08:10:35 +00:00
|
|
|
|
|
|
|
def _determine_audience(self):
|
|
|
|
self._audience = 'IAMShowcase'
|
|
|
|
|
|
|
|
def _format_assertion(self):
|
|
|
|
self._assertion_xml = get_assertion_xml(
|
|
|
|
'saml/xml/assertions/salesforce.xml', self._assertion_params, signed=True)
|