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..a7a15d0 100644 --- a/src/Auth/Process/SmartID.php +++ b/src/Auth/Process/SmartID.php @@ -108,13 +108,12 @@ public function __construct(array $config, $reserved) /** * @param array $attributes - * @param array $request + * @param array $state * @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) {