]> BookStack Code Mirror - bookstack/blobdiff - app/Auth/Access/Oidc/OidcService.php
Tiny header
[bookstack] / app / Auth / Access / Oidc / OidcService.php
index b4a6a0f089d8952f8fc15042bc54e9a2c86c47e2..eeacdb732357dc135075ef32827b3cfb2fafe74f 100644 (file)
@@ -2,18 +2,18 @@
 
 namespace BookStack\Auth\Access\Oidc;
 
+use function auth;
 use BookStack\Auth\Access\LoginService;
 use BookStack\Auth\Access\RegistrationService;
 use BookStack\Auth\User;
 use BookStack\Exceptions\JsonDebugException;
 use BookStack\Exceptions\StoppedAuthenticationException;
 use BookStack\Exceptions\UserRegistrationException;
+use function config;
 use Illuminate\Support\Facades\Cache;
 use League\OAuth2\Client\OptionProvider\HttpBasicAuthOptionProvider;
 use League\OAuth2\Client\Provider\Exception\IdentityProviderException;
 use Psr\Http\Client\ClientInterface as HttpClient;
-use function auth;
-use function config;
 use function trans;
 use function url;
 
@@ -40,8 +40,9 @@ class OidcService
     /**
      * Initiate an authorization flow.
      *
-     * @return array{url: string, state: string}
      * @throws OidcException
+     *
+     * @return array{url: string, state: string}
      */
     public function login(): array
     {
@@ -77,7 +78,6 @@ class OidcService
         return $this->processAccessTokenCallback($accessToken, $settings);
     }
 
-
     /**
      * @throws OidcException
      */