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
|
|
|
|
2020-02-14 14:19:48 +00:00
|
|
|
from passbook.providers.saml.processors.generic import GenericProcessor
|
|
|
|
from passbook.providers.saml.utils.xml_render import get_assertion_xml
|
2018-11-16 08:10:35 +00:00
|
|
|
|
|
|
|
|
2020-02-14 14:19:48 +00:00
|
|
|
class SalesForceProcessor(GenericProcessor):
|
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 _format_assertion(self):
|
2020-02-14 14:19:48 +00:00
|
|
|
super()._format_assertion()
|
2018-11-16 08:10:35 +00:00
|
|
|
self._assertion_xml = get_assertion_xml(
|
2019-12-31 11:51:16 +00:00
|
|
|
"saml/xml/assertions/salesforce.xml", self._assertion_params, signed=True
|
|
|
|
)
|