You are here

public function SimpleOauthAuthenticationProvider::__construct in Simple OAuth (OAuth2) & OpenID Connect 8.4

Same name and namespace in other branches
  1. 8 src/Authentication/Provider/SimpleOauthAuthenticationProvider.php \Drupal\simple_oauth\Authentication\Provider\SimpleOauthAuthenticationProvider::__construct()
  2. 8.2 src/Authentication/Provider/SimpleOauthAuthenticationProvider.php \Drupal\simple_oauth\Authentication\Provider\SimpleOauthAuthenticationProvider::__construct()
  3. 8.3 src/Authentication/Provider/SimpleOauthAuthenticationProvider.php \Drupal\simple_oauth\Authentication\Provider\SimpleOauthAuthenticationProvider::__construct()
  4. 5.x src/Authentication/Provider/SimpleOauthAuthenticationProvider.php \Drupal\simple_oauth\Authentication\Provider\SimpleOauthAuthenticationProvider::__construct()

Constructs a HTTP basic authentication provider object.

Parameters

\Drupal\simple_oauth\Server\ResourceServerInterface $resource_server: The resource server object.

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

\Drupal\simple_oauth\PageCache\SimpleOauthRequestPolicyInterface $page_cache_request_policy: The page cache request policy.

File

src/Authentication/Provider/SimpleOauthAuthenticationProvider.php, line 44

Class

SimpleOauthAuthenticationProvider
@internal

Namespace

Drupal\simple_oauth\Authentication\Provider

Code

public function __construct(ResourceServerInterface $resource_server, EntityTypeManagerInterface $entity_type_manager, SimpleOauthRequestPolicyInterface $page_cache_request_policy) {
  $this->resourceServer = $resource_server;
  $this->entityTypeManager = $entity_type_manager;
  $this->oauthPageCacheRequestPolicy = $page_cache_request_policy;
}