Skip to content

Commit 8913217

Browse files
committed
Document NameIDFormat SP option
Closes: #1759
1 parent b2805f9 commit 8913217

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

modules/saml/docs/sp.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,17 @@ The following attributes are available:
260260

261261
: Note that this option can be set for each IdP in the [IdP-remote metadata](../simplesamlphp-reference-idp-remote).
262262

263+
`NameIDFormat`
264+
: An array of the format(s) listed in the SP metadata that this SP will accept. Example:
265+
266+
'NameIDFormat' => [
267+
\SAML2\Constants::NAMEID_PERSISTENT,
268+
\SAML2\Constants::NAMEID_TRANSIENT,
269+
],
270+
263271
`NameIDPolicy`
264-
: The format of the NameID we request from the idp: an array in the form of
272+
: The format of the NameID we request from the IdP in the Authentiction Request:
273+
an array in the form of
265274
`[ 'Format' => the format, 'AllowCreate' => true or false ]`.
266275
Set to an empty array `[]` to omit sending any specific NameIDPolicy element
267276
in the AuthnRequest. When the entire option or either array key is unset,

0 commit comments

Comments
 (0)