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/saml_idp/processors/rancher.py

12 lines
386 B
Python
Raw Normal View History

2019-04-17 15:53:15 +00:00
"""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')