You are here

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

Constructs a HTTP basic authentication provider object.

Parameters

\Drupal\users_jwt\UsersJwtKeyRepositoryInterface $key_repository: The user key repository service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

\Drupal\Core\Site\Settings $settings: The site settings.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger channel factory.

File

modules/users_jwt/src/Authentication/Provider/UsersJwtAuth.php, line 62

Class

UsersJwtAuth
Class UsersJwtAuth.

Namespace

Drupal\users_jwt\Authentication\Provider

Code

public function __construct(UsersJwtKeyRepositoryInterface $key_repository, EntityTypeManagerInterface $entity_type_manager, Settings $settings, LoggerChannelFactoryInterface $logger_factory) {
  $this->keyRepository = $key_repository;
  $this->entityTypeManager = $entity_type_manager;
  $this->settings = $settings;
  $this->loggerFactory = $logger_factory;
}