Skip to content

Commit dc86c19

Browse files
webmaster777tvdijen
authored andcommitted
Fix example not using Issuer object
1 parent 62c7ab0 commit dc86c19

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ Example:
5454
// Set up an AuthnRequest
5555
$request = new SAML2\AuthnRequest();
5656
$request->setId($container->generateId());
57-
$request->setIssuer('https://sp.example.edu');
57+
$issuer = new SAML2\XML\saml\Issuer();
58+
$issuer->setValue('https://sp.example.edu');
59+
$request->setIssuer($issuer);
5860
$request->setDestination('https://idp.example.edu');
5961

6062
// Send it off using the HTTP-Redirect binding

0 commit comments

Comments
 (0)