Skip to content
Snippets Groups Projects
Commit d56e1d20 authored by Simão Martins's avatar Simão Martins Committed by Tim van Dijen
Browse files

Provider name (#1348)


* Configurable ProviderName

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

Closes #1346
parent 91cc0be6
No related branches found
No related tags found
No related merge requests found
......@@ -326,6 +326,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.
......
......@@ -651,6 +651,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.
Please register or to comment