Skip to content

Commit 8782b75

Browse files
tvdijenthijskh
authored andcommitted
NameID: use setters instead of deprecated NameID
1 parent c83adc2 commit 8782b75

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/Auth/Process/SFO.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ public function process(&$state)
6262
throw new Exception("Subjectid " . var_export($subjectid,true) . " does not start with urn:collab:person:");
6363
}
6464

65-
$nameid = \SAML2\XML\saml\NameID::fromArray(['Value' => $subjectid]);
65+
$nameid = new \SAML2\XML\saml\NameID();
66+
$nameid->setValue($subjectid);
6667

6768
// Start the authentication request
6869
$this->startSFO($this->idpMetadata, $nameid, $samlstateid);

0 commit comments

Comments
 (0)