You are here

public function Oauth2RequestPolicyInterface::isOauth2Request in OAuth2 Server 8

Same name and namespace in other branches
  1. 2.0.x src/PageCache/Oauth2RequestPolicyInterface.php \Drupal\oauth2_server\PageCache\Oauth2RequestPolicyInterface::isOauth2Request()

Returns a state whether the request has an OAuth2 access token.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The incoming request object.

Return value

bool A state whether the request has an OAuth2 access token.

1 method overrides Oauth2RequestPolicyInterface::isOauth2Request()
DisallowOauth2Requests::isOauth2Request in src/PageCache/DisallowOauth2Requests.php
Returns a state whether the request has an OAuth2 access token.

File

src/PageCache/Oauth2RequestPolicyInterface.php, line 29

Class

Oauth2RequestPolicyInterface
The interface for determining the requests with OAuth data.

Namespace

Drupal\oauth2_server\PageCache

Code

public function isOauth2Request(Request $request);