DisallowSimpleOauthRequests.php in Simple OAuth (OAuth2) & OpenID Connect 8.2
Namespace
Drupal\simple_oauth\PageCacheFile
src/PageCache/DisallowSimpleOauthRequests.phpView source
<?php
namespace Drupal\simple_oauth\PageCache;
use Drupal\Core\PageCache\RequestPolicyInterface;
use Drupal\simple_oauth\Authentication\Provider\SimpleOauthAuthenticationProvider;
use Drupal\simple_oauth\Server\ResourceServerInterface;
use Symfony\Component\HttpFoundation\Request;
/**
* @internal
*/
class DisallowSimpleOauthRequests implements RequestPolicyInterface {
/**
* {@inheritdoc}
*/
public function check(Request $request) {
return SimpleOauthAuthenticationProvider::hasTokenValue($request) ? self::DENY : NULL;
}
}
Classes
Name![]() |
Description |
---|---|
DisallowSimpleOauthRequests | @internal |