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.
authentik/passbook/providers/saml/processors/salesforce.py

15 lines
530 B
Python
Raw Normal View History

2018-11-16 09:08:15 +00:00
"""Salesforce Processor"""
2018-11-16 08:10:35 +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
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):
super()._format_assertion()
2018-11-16 08:10:35 +00:00
self._assertion_xml = get_assertion_xml(
"providers/saml/xml/assertions/salesforce.xml", self._assertion_params, signed=True
2019-12-31 11:51:16 +00:00
)