public function SimpleOauthRequestPolicyInterface::isOauth2Request in Simple OAuth (OAuth2) & OpenID Connect 5.x
Same name and namespace in other branches
- 8.4 src/PageCache/SimpleOauthRequestPolicyInterface.php \Drupal\simple_oauth\PageCache\SimpleOauthRequestPolicyInterface::isOauth2Request()
- 8.3 src/PageCache/SimpleOauthRequestPolicyInterface.php \Drupal\simple_oauth\PageCache\SimpleOauthRequestPolicyInterface::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 SimpleOauthRequestPolicyInterface::isOauth2Request()
- DisallowSimpleOauthRequests::isOauth2Request in src/
PageCache/ DisallowSimpleOauthRequests.php - Returns a state whether the request has an OAuth2 access token.
File
- src/
PageCache/ SimpleOauthRequestPolicyInterface.php, line 29
Class
- SimpleOauthRequestPolicyInterface
- The interface for determining the requests with OAuth data.
Namespace
Drupal\simple_oauth\PageCacheCode
public function isOauth2Request(Request $request);