Skip to content

Commit ce67b0d

Browse files
dpenezicDubravko Penezictvdijen
authored
Aassets version and correct path to saml:AuthenticatingAuthority (#32)
* Correct assets version requested from composer, and correct path to saml:AuthenticatingAuthority array * Fix phpdoc --------- Co-authored-by: Dubravko Penezic <dpenezic@srce.hr> Co-authored-by: Tim van Dijen <tvdijen@gmail.com>
1 parent 2dbbdc6 commit ce67b0d

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"require": {
3737
"php": "^8.3",
3838

39-
"simplesamlphp/assert": "^1.9",
39+
"simplesamlphp/assert": "^2.0",
4040
"simplesamlphp/composer-module-installer": "^1.5",
4141
"simplesamlphp/simplesamlphp": "^2.5@dev"
4242
},

src/Auth/Process/SmartID.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,12 @@ public function __construct(array $config, $reserved)
108108

109109
/**
110110
* @param array<mixed> $attributes
111-
* @param array<mixed> $request
111+
* @param array<mixed> $state
112112
* @return string
113113
* @throws \SimpleSAML\Error\Exception
114114
*/
115-
private function addID(array $attributes, array $request): string
115+
private function addID(array $attributes, array $state): string
116116
{
117-
$state = $request['saml:sp:State'];
118117
foreach ($this->candidates as $idCandidate) {
119118
if (isset($attributes[$idCandidate][0])) {
120119
if ($this->add_authority && count($state['saml:AuthenticatingAuthority']) > 0) {

0 commit comments

Comments
 (0)