@@ -20,12 +20,10 @@ class sspmod_stepupsfo_Auth_Process_SFO extends SimpleSAML_Auth_ProcessingFilter
2020 * @param array $config Configuration information about this filter.
2121 * @param mixed $reserved For future use.
2222 */
23- public function __construct ($ config , $ reserved )
23+ public function __construct (array $ config , $ reserved )
2424 {
2525 parent ::__construct ($ config , $ reserved );
2626
27- assert (is_array ($ config ));
28-
2927 $ this ->subjectidattribute = $ config ['subjectattribute ' ];
3028 if ( isset ($ config ['skipentities ' ]) ) {
3129 $ this ->skipentities = $ config ['skipentities ' ];
@@ -98,10 +96,10 @@ public function getIdPMetadata($entityId)
9896 * Send a SAML2 SSO request to the SFO IdP.
9997 *
10098 * @param SimpleSAML_Configuration $idpMetadata The metadata of the IdP.
101- * @param NameID $nameid The unspecified NameID of the principal to perform SFO for.
99+ * @param \SAML2\XML\saml\ NameID $nameid The unspecified NameID of the principal to perform SFO for.
102100 * @param string $relay RelayState to pass
103101 */
104- private function startSFO (SimpleSAML_Configuration $ idpMetadata , $ nameid , $ relay )
102+ private function startSFO (SimpleSAML_Configuration $ idpMetadata , \ SAML2 \ XML \ saml \ NameID $ nameid , $ relay )
105103 {
106104 $ ar = sspmod_saml_Message::buildAuthnRequest ($ this ->metadata , $ idpMetadata );
107105
@@ -134,7 +132,7 @@ private function startSFO(SimpleSAML_Configuration $idpMetadata, $nameid, $relay
134132 * @param \SAML2\Binding $binding The binding.
135133 * @param \SAML2\AuthnRequest $ar The authentication request.
136134 */
137- private function sendSAML2AuthnRequest ( \SAML2 \Binding $ binding , \SAML2 \AuthnRequest $ ar )
135+ private function sendSAML2AuthnRequest (\SAML2 \Binding $ binding , \SAML2 \AuthnRequest $ ar )
138136 {
139137 $ binding ->send ($ ar );
140138 assert (false );
0 commit comments