{% macro name() %}SAML2{% endmacro %} {% macro description() %}{% trans %}SAML2 is a legacy protocol based on XML security. Only redirect/post binding is supported.{% endtrans %}{% endmacro %} {% macro describe(service) %}
{% trans %}Endpoint{% endtrans %}
{{ url_for("sso.saml_redirect", service_uuid=service.uuid, _external=True) }}
{% trans %}ACS{% endtrans %}
{{ service.config["acs"] }}
{% trans %}IDP certificate{% endtrans %}
{{ service.config["idp_cert"] }}
{% trans %}Short IDP certificate{% endtrans %}
{{ "".join(service.config["idp_cert"].strip().split("\n")[1:-1]) }}
SP certificate{% endtrans %}
{{ service.config["sp_cert"] }}
{% trans %}Short SP certificate{% endtrans %}
{{ "".join(service.config["sp_cert"].strip().split("\n")[1:-1]) }}
{% trans %}SP private key{% endtrans %}
{{ service.config["sp_key"] }}
{% trans %}Short SP private key{% endtrans %}
{{ "".join(service.config["sp_key"].strip().split("\n")[1:-1]) }}
{% endmacro %}