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
|
|
|
|
2019-10-07 14:33:48 +00:00
|
|
|
from passbook.providers.saml.base import Processor
|
|
|
|
from passbook.providers.saml.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):
|
2019-12-31 11:51:16 +00:00
|
|
|
self._audience = "IAMShowcase"
|
2018-11-16 08:10:35 +00:00
|
|
|
|
|
|
|
def _format_assertion(self):
|
|
|
|
self._assertion_xml = get_assertion_xml(
|
2019-12-31 11:51:16 +00:00
|
|
|
"saml/xml/assertions/salesforce.xml", self._assertion_params, signed=True
|
|
|
|
)
|