Skip to content

Commit aead260

Browse files
committed
Upgrade saml2-lib
1 parent 8a2599d commit aead260

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"require": {
2323
"php": "^8.1",
2424

25-
"simplesamlphp/saml2-legacy": "^4.17",
25+
"simplesamlphp/saml2": "^5.0",
2626
"simplesamlphp/simplesamlphp": "^2.4",
2727
"symfony/http-foundation": "^6.4"
2828
},

src/Controller/MetaEditor.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace SimpleSAML\Module\metaedit\Controller;
66

77
use Exception;
8-
use SAML2\Constants;
8+
use SimpleSAML\SAML2\Constants as C;
99
use SimpleSAML\Auth;
1010
use SimpleSAML\Configuration;
1111
use SimpleSAML\Error;
@@ -170,13 +170,13 @@ public function edit(Request $request): Template
170170
$metadata['AssertionConsumerService'] = [
171171
Utils\Config\Metadata::getDefaultEndpoint(
172172
$metadata['AssertionConsumerService'],
173-
[Constants::BINDING_HTTP_POST],
173+
[C::BINDING_HTTP_POST],
174174
),
175175
];
176176
$metadata['SingleLogoutService'] = [
177177
Utils\Config\Metadata::getDefaultEndpoint(
178178
$metadata['SingleLogoutService'],
179-
[Constants::BINDING_HTTP_REDIRECT],
179+
[C::BINDING_HTTP_REDIRECT],
180180
),
181181
];
182182
} else {

src/MetaEditor.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace SimpleSAML\Module\metaedit;
66

77
use Exception;
8-
use SAML2\Constants;
8+
use SimpleSAML\SAML2\Constants as C;
99

1010
/**
1111
* Editor for metadata
@@ -71,8 +71,8 @@ public function formToMeta(array $request, array $metadata = [], array $override
7171
$this->getStandardField($request, $metadata, 'entityid');
7272
$this->getStandardField($request, $metadata, 'name');
7373
$this->getStandardField($request, $metadata, 'description');
74-
$this->getEndpointField($request, $metadata, 'AssertionConsumerService', Constants::BINDING_HTTP_POST, true);
75-
$this->getEndpointField($request, $metadata, 'SingleLogoutService', Constants::BINDING_HTTP_REDIRECT, false);
74+
$this->getEndpointField($request, $metadata, 'AssertionConsumerService', C::BINDING_HTTP_POST, true);
75+
$this->getEndpointField($request, $metadata, 'SingleLogoutService', C::BINDING_HTTP_REDIRECT, false);
7676
$metadata['updated'] = time();
7777

7878
foreach ($override as $key => $value) {

0 commit comments

Comments
 (0)