providers/saml: use redirect binding first
This commit is contained in:
parent
099197ba8c
commit
a647917074
|
@ -65,18 +65,18 @@ class MetadataProcessor:
|
||||||
def get_bindings(self) -> Iterator[Element]:
|
def get_bindings(self) -> Iterator[Element]:
|
||||||
"""Get all Bindings supported"""
|
"""Get all Bindings supported"""
|
||||||
binding_url_map = {
|
binding_url_map = {
|
||||||
SAML_BINDING_POST: self.http_request.build_absolute_uri(
|
|
||||||
reverse(
|
|
||||||
"authentik_providers_saml:sso-post",
|
|
||||||
kwargs={"application_slug": self.provider.application.slug},
|
|
||||||
)
|
|
||||||
),
|
|
||||||
SAML_BINDING_REDIRECT: self.http_request.build_absolute_uri(
|
SAML_BINDING_REDIRECT: self.http_request.build_absolute_uri(
|
||||||
reverse(
|
reverse(
|
||||||
"authentik_providers_saml:sso-redirect",
|
"authentik_providers_saml:sso-redirect",
|
||||||
kwargs={"application_slug": self.provider.application.slug},
|
kwargs={"application_slug": self.provider.application.slug},
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
SAML_BINDING_POST: self.http_request.build_absolute_uri(
|
||||||
|
reverse(
|
||||||
|
"authentik_providers_saml:sso-post",
|
||||||
|
kwargs={"application_slug": self.provider.application.slug},
|
||||||
|
)
|
||||||
|
),
|
||||||
}
|
}
|
||||||
for binding, url in binding_url_map.items():
|
for binding, url in binding_url_map.items():
|
||||||
element = Element(f"{{{NS_SAML_METADATA}}}SingleSignOnService")
|
element = Element(f"{{{NS_SAML_METADATA}}}SingleSignOnService")
|
||||||
|
|
Reference in New Issue