@@ -520,7 +520,7 @@ public function getAttributeWithFriendlyName($friendlyName)
520520 * @param bool $isPassive When true the AuthNRequest will set the Ispassive='true'
521521 * @param bool $stay True if we want to stay (returns the url string) False to redirect
522522 * @param bool $setNameIdPolicy When true the AuthNRequest will set a nameIdPolicy element
523- * @param string $nameIdValueReq Indicates to the IdP the subject that should be authenticated
523+ * @param string $nameIdValueReq Indicates to the IdP the subject that should be authenticated
524524 *
525525 * @return string|null If $stay is True, it return a string with the SLO URL + LogoutRequest + parameters
526526 *
@@ -664,12 +664,13 @@ public function getLastRequestID()
664664 * @param bool $forceAuthn When true the AuthNRequest will set the ForceAuthn='true'
665665 * @param bool $isPassive When true the AuthNRequest will set the Ispassive='true'
666666 * @param bool $setNameIdPolicy When true the AuthNRequest will set a nameIdPolicy element
667+ * @param string $nameIdValueReq Indicates to the IdP the subject that should be authenticated
667668 *
668669 * @return AuthnRequest The AuthnRequest object
669670 */
670- public function buildAuthnRequest ($ settings , $ forceAuthn , $ isPassive , $ setNameIdPolicy )
671+ public function buildAuthnRequest ($ settings , $ forceAuthn , $ isPassive , $ setNameIdPolicy, $ nameIdValueReq = null )
671672 {
672- return new AuthnRequest ($ settings , $ forceAuthn , $ isPassive , $ setNameIdPolicy );
673+ return new AuthnRequest ($ settings , $ forceAuthn , $ isPassive , $ setNameIdPolicy, $ nameIdValueReq );
673674 }
674675
675676 /**
@@ -719,7 +720,7 @@ public function buildResponseSignature($samlResponse, $relayState, $signAlgorith
719720 * @throws Exception
720721 * @throws Error
721722 */
722- private function buildMessageSignature ($ samlMessage , $ relayState , $ signAlgorithm = XMLSecurityKey::RSA_SHA256 , $ type= "SAMLRequest " )
723+ private function buildMessageSignature ($ samlMessage , $ relayState , $ signAlgorithm = XMLSecurityKey::RSA_SHA256 , $ type = "SAMLRequest " )
723724 {
724725 $ key = $ this ->_settings ->getSPkey ();
725726 if (empty ($ key )) {
0 commit comments