| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Application: directus |
||
| 4 | * Author: Eric Delaporte <[email protected]> |
||
| 5 | * Date: 13.11.19 |
||
| 6 | * Time: 15:13 |
||
| 7 | */ |
||
| 8 | |||
| 9 | |||
| 10 | namespace Directus\Authentication\Sso\Provider\Keycloak; |
||
| 11 | |||
| 12 | require_once 'Provider/Keycloak.php'; |
||
| 13 | require_once 'Provider/KeycloakResourceOwner.php'; |
||
| 14 | |||
| 15 | use Directus\Authentication\Sso\TwoSocialProvider; |
||
|
0 ignored issues
–
show
|
|||
| 16 | use Directus\Authentication\Sso\Provider\Keycloak\Provider\Keycloak; |
||
|
0 ignored issues
–
show
The type
Directus\Authentication\...cloak\Provider\Keycloak was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 17 | |||
| 18 | class Provider extends TwoSocialProvider |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var Keycloak |
||
| 22 | */ |
||
| 23 | protected $provider = null; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @inheritdoc |
||
| 27 | */ |
||
| 28 | public function getScopes() |
||
| 29 | { |
||
| 30 | return [ |
||
| 31 | 'email' |
||
| 32 | ]; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Creates the Google provider oAuth client |
||
| 37 | * |
||
| 38 | * @return Google |
||
|
0 ignored issues
–
show
The type
Directus\Authentication\...rovider\Keycloak\Google was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 39 | */ |
||
| 40 | protected function createProvider() |
||
| 41 | { |
||
| 42 | $this->provider = new Keycloak([ |
||
| 43 | 'authServerUrl' => $this->config->get('authServerUrl'), |
||
| 44 | 'realm' => $this->config->get('realm'), |
||
| 45 | 'clientId' => $this->config->get('clientId'), |
||
| 46 | 'clientSecret' => $this->config->get('clientSecret'), |
||
| 47 | 'redirectUri' => $this->getRedirectUrl() |
||
| 48 | ]); |
||
| 49 | |||
| 50 | return $this->provider; |
||
| 51 | } |
||
| 52 | |||
| 53 | |||
| 54 | } |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths