From 5abd730142d3091c50a10ef7c26ad2d33610f439 Mon Sep 17 00:00:00 2001 From: Dubravko Penezic Date: Tue, 7 Jul 2026 09:49:02 +0200 Subject: [PATCH 1/2] Correct assets version requested from composer, and correct path to saml:AuthenticatingAuthority array --- composer.json | 2 +- src/Auth/Process/SmartID.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 01dfc37..32b6aeb 100644 --- a/composer.json +++ b/composer.json @@ -36,7 +36,7 @@ "require": { "php": "^8.3", - "simplesamlphp/assert": "^1.9", + "simplesamlphp/assert": "^2.0", "simplesamlphp/composer-module-installer": "^1.5", "simplesamlphp/simplesamlphp": "^2.5@dev" }, diff --git a/src/Auth/Process/SmartID.php b/src/Auth/Process/SmartID.php index b089e45..22d6008 100644 --- a/src/Auth/Process/SmartID.php +++ b/src/Auth/Process/SmartID.php @@ -112,9 +112,8 @@ public function __construct(array $config, $reserved) * @return string * @throws \SimpleSAML\Error\Exception */ - private function addID(array $attributes, array $request): string + private function addID(array $attributes, array $state): string { - $state = $request['saml:sp:State']; foreach ($this->candidates as $idCandidate) { if (isset($attributes[$idCandidate][0])) { if ($this->add_authority && count($state['saml:AuthenticatingAuthority']) > 0) { From c9ba9bc2e1c75e92894f6a07000800cd94e614c1 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Wed, 8 Jul 2026 01:38:49 +0200 Subject: [PATCH 2/2] Fix phpdoc --- src/Auth/Process/SmartID.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Auth/Process/SmartID.php b/src/Auth/Process/SmartID.php index 22d6008..a7a15d0 100644 --- a/src/Auth/Process/SmartID.php +++ b/src/Auth/Process/SmartID.php @@ -108,7 +108,7 @@ public function __construct(array $config, $reserved) /** * @param array $attributes - * @param array $request + * @param array $state * @return string * @throws \SimpleSAML\Error\Exception */