You are here

public function BasicAuthSwap::__construct in Simple OAuth (OAuth2) & OpenID Connect 5.x

Same name and namespace in other branches
  1. 8.4 src/HttpMiddleware/BasicAuthSwap.php \Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap::__construct()
  2. 8.2 src/HttpMiddleware/BasicAuthSwap.php \Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap::__construct()
  3. 8.3 src/HttpMiddleware/BasicAuthSwap.php \Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap::__construct()

Constructs a BasicAuthSwap object.

Parameters

\Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel: The decorated kernel.

File

src/HttpMiddleware/BasicAuthSwap.php, line 26

Class

BasicAuthSwap
Uses the basic auth information to provide the client credentials for OAuth2.

Namespace

Drupal\simple_oauth\HttpMiddleware

Code

public function __construct(HttpKernelInterface $http_kernel) {
  $this->httpKernel = $http_kernel;
}