public function DisallowOauth2Requests::isOauth2Request in OAuth2 Server 8
Same name and namespace in other branches
- 2.0.x src/PageCache/DisallowOauth2Requests.php \Drupal\oauth2_server\PageCache\DisallowOauth2Requests::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.
Overrides Oauth2RequestPolicyInterface::isOauth2Request
1 call to DisallowOauth2Requests::isOauth2Request()
- DisallowOauth2Requests::check in src/
PageCache/ DisallowOauth2Requests.php - Determines whether delivery of a cached page should be attempted.
File
- src/
PageCache/ DisallowOauth2Requests.php, line 35
Class
- DisallowOauth2Requests
- Class Disallow Oauth2 Requests.
Namespace
Drupal\oauth2_server\PageCacheCode
public function isOauth2Request(Request $request) {
return $this->authProvider
->applies($request);
}