diff --git a/modules/saml/docs/sp.md b/modules/saml/docs/sp.md
index fb9dff3aeb22bbb08cbcde2983b8081e7058baf4..4f90c32f8b54bf677442aa9973ca6aed4482a217 100644
--- a/modules/saml/docs/sp.md
+++ b/modules/saml/docs/sp.md
@@ -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.
diff --git a/modules/saml/lib/Auth/Source/SP.php b/modules/saml/lib/Auth/Source/SP.php
index 98ef637fd2f7ed319523adff6dd3de8f9411d55a..991cb72287b80eb883e98032d41b133414028c01 100644
--- a/modules/saml/lib/Auth/Source/SP.php
+++ b/modules/saml/lib/Auth/Source/SP.php
@@ -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');