namespace BookStack\Auth\Access\Oidc;
-use BookStack\Auth\Access\GroupSyncService;
-use Illuminate\Support\Arr;
use function auth;
+use BookStack\Auth\Access\GroupSyncService;
use BookStack\Auth\Access\LoginService;
use BookStack\Auth\Access\RegistrationService;
use BookStack\Auth\User;
use BookStack\Exceptions\StoppedAuthenticationException;
use BookStack\Exceptions\UserRegistrationException;
use function config;
+use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Cache;
use League\OAuth2\Client\OptionProvider\HttpBasicAuthOptionProvider;
use League\OAuth2\Client\Provider\Exception\IdentityProviderException;
*/
public function __construct(
RegistrationService $registrationService,
- LoginService $loginService,
- HttpClient $httpClient,
- GroupSyncService $groupService
- )
- {
+ LoginService $loginService,
+ HttpClient $httpClient,
+ GroupSyncService $groupService
+ ) {
$this->registrationService = $registrationService;
$this->loginService = $loginService;
$this->httpClient = $httpClient;
$scopeConfig = $this->config()['additional_scopes'] ?: '';
$scopeArr = explode(',', $scopeConfig);
- $scopeArr = array_map(fn(string $scope) => trim($scope), $scopeArr);
+ $scopeArr = array_map(fn (string $scope) => trim($scope), $scopeArr);
return array_filter($scopeArr);
}
return [];
}
- return array_values(array_filter($groupsList, function($val) {
+ return array_values(array_filter($groupsList, function ($val) {
return is_string($val);
}));
}