@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | ]; |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | - $adfs_service_location = Module::getModuleURL('adfs') . '/idp/prp.php'; |
|
| 119 | + $adfs_service_location = Module::getModuleURL('adfs').'/idp/prp.php'; |
|
| 120 | 120 | $metaArray = [ |
| 121 | 121 | 'metadata-set' => 'adfs-idp-remote', |
| 122 | 122 | 'entityid' => $idpentityid, |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | $metaArray['RegistrationInfo'] = $idpmeta->getArray('RegistrationInfo'); |
| 179 | 179 | } |
| 180 | 180 | |
| 181 | - $metaflat = '$metadata[' . var_export($idpentityid, true) . '] = ' . var_export($metaArray, true) . ';'; |
|
| 181 | + $metaflat = '$metadata['.var_export($idpentityid, true).'] = '.var_export($metaArray, true).';'; |
|
| 182 | 182 | |
| 183 | 183 | $metaBuilder = new Metadata\SAMLBuilder($idpentityid); |
| 184 | 184 | $metaBuilder->addSecurityTokenServiceType($metaArray); |
@@ -208,8 +208,8 @@ discard block |
||
| 208 | 208 | $certdata = []; |
| 209 | 209 | foreach (array_keys($availableCerts) as $availableCert) { |
| 210 | 210 | $certdata[$availableCert]['name'] = $availableCert; |
| 211 | - $certdata[$availableCert]['url'] = Module::getModuleURL('saml/idp/certs.php') . |
|
| 212 | - '/' . $availableCert; |
|
| 211 | + $certdata[$availableCert]['url'] = Module::getModuleURL('saml/idp/certs.php'). |
|
| 212 | + '/'.$availableCert; |
|
| 213 | 213 | |
| 214 | 214 | $certdata[$availableCert]['comment'] = ''; |
| 215 | 215 | } |
@@ -250,18 +250,18 @@ discard block |
||
| 250 | 250 | Logger::info('ADFS - IdP.prp: Accessing ADFS IdP endpoint prp'); |
| 251 | 251 | |
| 252 | 252 | $idpEntityId = $this->metadata->getMetaDataCurrentEntityID('adfs-idp-hosted'); |
| 253 | - $idp = IdP::getById('adfs:' . $idpEntityId); |
|
| 253 | + $idp = IdP::getById('adfs:'.$idpEntityId); |
|
| 254 | 254 | |
| 255 | 255 | if (isset($_GET['wa'])) { |
| 256 | 256 | if ($_GET['wa'] === 'wsignout1.0') { |
| 257 | 257 | return new StreamedResponse( |
| 258 | - function () use ($idp) { |
|
| 258 | + function() use ($idp) { |
|
| 259 | 259 | ADFS::receiveLogoutMessage($idp); |
| 260 | 260 | } |
| 261 | 261 | ); |
| 262 | 262 | } elseif ($_GET['wa'] === 'wsignin1.0') { |
| 263 | 263 | return new StreamedResponse( |
| 264 | - function () use ($idp) { |
|
| 264 | + function() use ($idp) { |
|
| 265 | 265 | ADFS::receiveAuthnRequest($idp); |
| 266 | 266 | } |
| 267 | 267 | ); |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | $logoutError = null; // null on success, or an instance of a \SimpleSAML\Error\Exception on failure. |
| 275 | 275 | |
| 276 | 276 | return new StreamedResponse( |
| 277 | - function () use ($idp, $assocId, $relayState, $logoutError) { |
|
| 277 | + function() use ($idp, $assocId, $relayState, $logoutError) { |
|
| 278 | 278 | $idp->handleLogoutResponse($assocId, $relayState, $logoutError); |
| 279 | 279 | } |
| 280 | 280 | ); |