Skip to content

Commit

Permalink
Fix constants
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Sep 1, 2024
1 parent dc58209 commit b77a617
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Controller/Adfs.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
use SimpleSAML\IdP;
use SimpleSAML\Logger;
use SimpleSAML\Metadata;
use SimpleSAML\Module;
use SimpleSAML\Module\adfs\IdP\ADFS as ADFS_IDP;
use SimpleSAML\SAML2\Constants as C;
use SimpleSAML\Session;
use SimpleSAML\Utils;
use Symfony\Component\HttpFoundation\Request;
Expand Down Expand Up @@ -123,13 +125,13 @@ public function metadata(Request $request): Response
'entityid' => $idpentityid,
'SingleSignOnService' => [
0 => [
'Binding' => Constants::BINDING_HTTP_REDIRECT,
'Binding' => C::BINDING_HTTP_REDIRECT,
'Location' => $adfs_service_location,
],
],
'SingleLogoutService' => [
0 => [
'Binding' => Constants::BINDING_HTTP_REDIRECT,
'Binding' => C::BINDING_HTTP_REDIRECT,
'Location' => $adfs_service_location,
],
],
Expand All @@ -143,7 +145,7 @@ public function metadata(Request $request): Response

$metaArray['NameIDFormat'] = $idpmeta->getOptionalString(
'NameIDFormat',
Constants::NAMEID_TRANSIENT,
C::NAMEID_TRANSIENT,
);

if ($idpmeta->hasValue('OrganizationName')) {
Expand Down

0 comments on commit b77a617

Please sign in to comment.