@@ -89,13 +89,13 @@ class ADFS
8989 /**
9090 * @param \Symfony\Component\HttpFoundation\Request $request
9191 * @param \SimpleSAML\SOAP12\XML\Envelope $soapEnvelope
92- * @param \SimpleSAML\Module\adfs\IdP\PassiveIdP $idp
92+ * @param \SimpleSAML\Module\adfs\IdP\ActiveIdP $idp
9393 * @throws \SimpleSAML\Error\MetadataNotFound
9494 */
95- public static function receivePassiveAuthnRequest (
95+ public static function receiveActiveAuthnRequest (
9696 Request $ request ,
9797 Envelope $ soapEnvelope ,
98- PassiveIdP $ idp ,
98+ ActiveIdP $ idp ,
9999 ): StreamedResponse {
100100 // Parse the SOAP-header
101101 $ header = $ soapEnvelope ->getHeader ();
@@ -162,7 +162,7 @@ public static function receivePassiveAuthnRequest(
162162 Logger::debug ($ requestSecurityTokenStr );
163163
164164 $ state = [
165- 'Responder ' => [ADFS ::class, 'sendPassiveResponse ' ],
165+ 'Responder ' => [ADFS ::class, 'sendActiveResponse ' ],
166166 'SPMetadata ' => $ spMetadata ->toArray (),
167167 'MessageID ' => $ messageid ->getContent ()->getValue (),
168168 // Dirty hack to leverage the SAML ECP logics
@@ -182,7 +182,7 @@ function () use ($idp, &$state) {
182182 * @param \SimpleSAML\IdP $idp
183183 * @throws \SimpleSAML\Error\MetadataNotFound
184184 */
185- public static function receiveAuthnRequest (Request $ request , IdP $ idp ): StreamedResponse
185+ public static function receivePassiveAuthnRequest (Request $ request , IdP $ idp ): StreamedResponse
186186 {
187187 parse_str ($ request ->server ->get ('QUERY_STRING ' ), $ query );
188188
@@ -243,7 +243,7 @@ function () use ($idp, &$state) {
243243 * @param string $method
244244 * @return \SimpleSAML\SAML11\XML\saml\Assertion
245245 */
246- private static function generateActiveAssertion (
246+ private static function generatePassiveAssertion (
247247 string $ issuer ,
248248 string $ target ,
249249 string $ nameid ,
@@ -328,7 +328,7 @@ private static function generateActiveAssertion(
328328 * @param int $assertionLifetime
329329 * @return \SimpleSAML\SAML11\XML\saml\Assertion
330330 */
331- private static function generatePassiveAssertion (
331+ private static function generateActiveAssertion (
332332 string $ issuer ,
333333 string $ target ,
334334 string $ nameid ,
@@ -637,7 +637,7 @@ public static function getHostedMetadata(string $entityid, ?MetaDataStorageHandl
637637 * @param array<mixed> $state
638638 * @throws \Exception
639639 */
640- public static function sendPassiveResponse (array $ state ): void
640+ public static function sendActiveResponse (array $ state ): void
641641 {
642642 $ idp = IdP::getByState ($ state );
643643 $ idpMetadata = $ idp ->getConfig ();
@@ -662,7 +662,7 @@ public static function sendPassiveResponse(array $state): void
662662 $ attributes = $ state ['Attributes ' ];
663663 $ nameid = $ state ['saml:NameID ' ][C_SAML2 ::NAMEID_UNSPECIFIED ];
664664
665- $ assertion = ADFS ::generatePassiveAssertion (
665+ $ assertion = ADFS ::generateActiveAssertion (
666666 $ idpEntityId ,
667667 $ spEntityId ,
668668 $ nameid ->getValue (),
@@ -763,7 +763,7 @@ public static function sendPassiveResponse(array $state): void
763763 * @param array<mixed> $state
764764 * @throws \Exception
765765 */
766- public static function sendResponse (array $ state ): void
766+ public static function sendPassiveResponse (array $ state ): void
767767 {
768768 $ spMetadata = $ state ['SPMetadata ' ];
769769 $ spEntityId = $ spMetadata ['entityid ' ];
@@ -808,7 +808,7 @@ public static function sendResponse(array $state): void
808808 $ method = C_SAML2 ::AC_PASSWORD ;
809809 }
810810
811- $ assertion = ADFS ::generateActiveAssertion (
811+ $ assertion = ADFS ::generatePassiveAssertion (
812812 $ idpEntityId ,
813813 $ spEntityId ,
814814 $ nameid ,
0 commit comments