Skip to content
Snippets Groups Projects
Unverified Commit 59163e5e authored by Simão Martins's avatar Simão Martins Committed by GitHub
Browse files

Provider name (#1348)


* Configurable ProviderName

Co-authored-by: default avatarTim van Dijen <tvdijen@gmail.com>

Closes #1346
parent 555cd859
No related branches found
No related tags found
No related merge requests found
......@@ -330,6 +330,11 @@ Options
: *Note*: SAML 2 specific.
`ProviderName`
: Human readable name of the local SP sent with the authentication request.
: *Note*: SAML 2 specific.
`ProtocolBinding`
: The binding that should be used for SAML2 authentication responses.
This option controls the binding that is requested through the AuthnRequest message to the IdP.
......
......@@ -599,6 +599,11 @@ class SP extends \SimpleSAML\Auth\Source
if (isset($state['saml:Extensions'])) {
$ar->setExtensions($state['saml:Extensions']);
}
$providerName = $this->metadata->getString("ProviderName", null);
if ($providerName !== null) {
$ar->setProviderName($providerName);
}
// save IdP entity ID as part of the state
$state['ExpectedIssuer'] = $idpMetadata->getString('entityid');
......
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