Skip to content
Snippets Groups Projects
Unverified Commit 39618716 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Prioritize HTTP-Redirect binding when sending an authentication request.

The SingleSignOn endpoint is not indexed, and as such, we should prioritize HTTP-Redirect when available in order to comply with SAML2Int.
parent 250e7e2b
No related branches found
No related tags found
No related merge requests found
......@@ -287,10 +287,10 @@ class SP extends Source
\SAML2\Constants::BINDING_HOK_SSO)
);
} else {
$dst = $idpMetadata->getDefaultEndpoint('SingleSignOnService', array(
$dst = $idpMetadata->getEndpointPrioritizedByBinding('SingleSignOnService', [
\SAML2\Constants::BINDING_HTTP_REDIRECT,
\SAML2\Constants::BINDING_HTTP_POST)
);
\SAML2\Constants::BINDING_HTTP_POST,
]);
}
$ar->setDestination($dst['Location']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment