@@ -161,7 +161,7 @@ |
||
| 161 | 161 | */ |
| 162 | 162 | public function sls(bool $retrieveParametersFromServer = false): array |
| 163 | 163 | { |
| 164 | - $this->base->processSLO(false, null, $retrieveParametersFromServer, function () { |
|
| 164 | + $this->base->processSLO(false, null, $retrieveParametersFromServer, function() { |
|
| 165 | 165 | event(new SignedOut()); |
| 166 | 166 | }); |
| 167 | 167 | |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | Route::group([ |
| 6 | 6 | 'prefix' => config('saml2.routesPrefix'), |
| 7 | 7 | 'middleware' => array_merge(['saml2.resolveIdentityProvider'], config('saml2.routesMiddleware')), |
| 8 | -], function () { |
|
| 8 | +], function() { |
|
| 9 | 9 | Route::get('/{uuid}/logout', array( |
| 10 | 10 | 'as' => 'saml.logout', |
| 11 | 11 | 'uses' => 'Slides\Saml2\Http\Controllers\Saml2Controller@logout', |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | case 'unspecified': |
| 51 | 51 | return 'urn:oasis:names:tc:SAML:1.1:nameid-format:' . $format; |
| 52 | 52 | default: |
| 53 | - return 'urn:oasis:names:tc:SAML:2.0:nameid-format:'. $format; |
|
| 53 | + return 'urn:oasis:names:tc:SAML:2.0:nameid-format:' . $format; |
|
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | $values = []; |
| 59 | 59 | |
| 60 | 60 | foreach ($array as $key => $value) { |
| 61 | - if(is_array($value)) { |
|
| 61 | + if (is_array($value)) { |
|
| 62 | 62 | continue; |
| 63 | 63 | } |
| 64 | 64 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | OneLoginUtils::setProxyVars(true); |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - $this->app->singleton(OneLoginAuth::class, function ($app) use ($idp) { |
|
| 57 | + $this->app->singleton(OneLoginAuth::class, function($app) use ($idp) { |
|
| 58 | 58 | $config = $app['config']['saml2']; |
| 59 | 59 | |
| 60 | 60 | $this->setConfigDefaultValues($idp->idpUuid(), $config); |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | ); |
| 65 | 65 | }); |
| 66 | 66 | |
| 67 | - $this->app->singleton(Auth::class, function ($app) use ($idp) { |
|
| 67 | + $this->app->singleton(Auth::class, function($app) use ($idp) { |
|
| 68 | 68 | return new \Slides\Saml2\Auth($app[OneLoginAuth::class], $idp); |
| 69 | 69 | }); |
| 70 | 70 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('saml2_sessions', function (Blueprint $table) { |
|
| 16 | + Schema::create('saml2_sessions', function(Blueprint $table) { |
|
| 17 | 17 | $table->id(); |
| 18 | 18 | $table->foreignId('idp_id')->constrained('saml2_identity_providers'); |
| 19 | 19 | $table->foreignId('user_id')->nullable(); |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | { |
| 16 | 16 | Schema::rename('saml2_tenants', 'saml2_identity_providers'); |
| 17 | 17 | |
| 18 | - Schema::table('saml2_identity_providers', function (Blueprint $table) { |
|
| 18 | + Schema::table('saml2_identity_providers', function(Blueprint $table) { |
|
| 19 | 19 | $table->nullableMorphs('tenant'); |
| 20 | 20 | }); |
| 21 | 21 | } |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | public function down() |
| 29 | 29 | { |
| 30 | - Schema::table('saml2_identity_providers', function (Blueprint $table) { |
|
| 30 | + Schema::table('saml2_identity_providers', function(Blueprint $table) { |
|
| 31 | 31 | $table->dropMorphs('tenant'); |
| 32 | 32 | }); |
| 33 | 33 | |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::table('saml2_identity_providers', function (Blueprint $table) { |
|
| 16 | + Schema::table('saml2_identity_providers', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('idp_entity_id')->nullable()->change(); |
| 18 | 18 | $table->string('idp_login_url')->nullable()->change(); |
| 19 | 19 | $table->string('idp_logout_url')->nullable()->change(); |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | public function down() |
| 31 | 31 | { |
| 32 | - Schema::table('saml2_identity_providers', function (Blueprint $table) { |
|
| 32 | + Schema::table('saml2_identity_providers', function(Blueprint $table) { |
|
| 33 | 33 | $table->string('idp_entity_id')->nullable(false)->change(); |
| 34 | 34 | $table->string('idp_login_url')->nullable(false)->change(); |
| 35 | 35 | $table->string('idp_logout_url')->nullable(false)->change(); |