Skip to content
Snippets Groups Projects
Commit 8e678c43 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Correct NameID api docs and add an example.

parent 8d1b68ab
No related branches found
No related tags found
No related merge requests found
......@@ -226,7 +226,8 @@ See the [`saml:SP`](./saml:sp) reference for information about available SAML au
### Example
$idp = $auth->getAuthData('saml:sp:IdP');
print('You are logged in from: ' . htmlspecialchars($idp));
$nameID = $auth->getAuthData('saml:sp:NameID')->getValue();
printf('You are %s, logged in from %s', htmlspecialchars($nameID), htmlspecialchars($idp));
`getLoginURL`
......
......@@ -94,7 +94,7 @@ The following attributes are available:
`saml:sp:NameID`
: The NameID the user was issued by the IdP.
This is an associative array with the various fields from the NameID.
This is a \SAML2\XML\saml\NameID object with the various fields from the NameID.
`saml:sp:SessionIndex`
: The SessionIndex we received from the IdP.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment