class DisallowSimpleOauthRequests in Simple OAuth (OAuth2) & OpenID Connect 8
Same name and namespace in other branches
- 8.4 src/PageCache/DisallowSimpleOauthRequests.php \Drupal\simple_oauth\PageCache\DisallowSimpleOauthRequests
- 8.2 src/PageCache/DisallowSimpleOauthRequests.php \Drupal\simple_oauth\PageCache\DisallowSimpleOauthRequests
- 8.3 src/PageCache/DisallowSimpleOauthRequests.php \Drupal\simple_oauth\PageCache\DisallowSimpleOauthRequests
- 5.x src/PageCache/DisallowSimpleOauthRequests.php \Drupal\simple_oauth\PageCache\DisallowSimpleOauthRequests
Class DisallowSimpleOauthRequests.
@package Drupal\simple_oauth\PageCache
Hierarchy
- class \Drupal\simple_oauth\PageCache\DisallowSimpleOauthRequests implements RequestPolicyInterface
Expanded class hierarchy of DisallowSimpleOauthRequests
1 string reference to 'DisallowSimpleOauthRequests'
1 service uses DisallowSimpleOauthRequests
File
- src/
PageCache/ DisallowSimpleOauthRequests.php, line 14
Namespace
Drupal\simple_oauth\PageCacheView source
class DisallowSimpleOauthRequests implements RequestPolicyInterface {
/**
* {@inheritdoc}
*/
public function check(Request $request) {
return SimpleOauthAuthenticationProvider::getTokenValue($request) ? self::DENY : NULL;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DisallowSimpleOauthRequests:: |
public | function |
Determines whether delivery of a cached page should be attempted. Overrides RequestPolicyInterface:: |
|
RequestPolicyInterface:: |
constant | Allow delivery of cached pages. | ||
RequestPolicyInterface:: |
constant | Deny delivery of cached pages. |