You are here

public function JwtAuth::__construct in JSON Web Token Authentication (JWT) 8

Same name and namespace in other branches
  1. 8.0 src/Authentication/Provider/JwtAuth.php \Drupal\jwt\Authentication\Provider\JwtAuth::__construct()

Constructs a HTTP basic authentication provider object.

Parameters

\Drupal\jwt\Transcoder\JwtTranscoderInterface $transcoder: The jwt transcoder service.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher service.

File

src/Authentication/Provider/JwtAuth.php, line 43

Class

JwtAuth
JWT Authentication Provider.

Namespace

Drupal\jwt\Authentication\Provider

Code

public function __construct(JwtTranscoderInterface $transcoder, EventDispatcherInterface $event_dispatcher) {
  $this->transcoder = $transcoder;
  $this->eventDispatcher = $event_dispatcher;
}