You are here

private function Jwks::__construct in Simple OAuth (OAuth2) & OpenID Connect 5.x

Jwks constructor.

Parameters

\Drupal\Core\Session\AccountProxyInterface $user: The user.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

File

src/Controller/Jwks.php, line 42

Class

Jwks
Controller for the User Info endpoint.

Namespace

Drupal\simple_oauth\Controller

Code

private function __construct(AccountProxyInterface $user, ConfigFactoryInterface $config_factory) {
  $this->user = $user
    ->getAccount();
  $this->config = $config_factory
    ->get('simple_oauth.settings');
}