DisallowBasicAuthRequests

Cache policy for pages served from basic auth.

This policy disallows caching of requests that use basic_auth for security reasons. Otherwise responses for authenticated requests can get into the page cache and could be delivered to unprivileged users.

Hierarchy

File

core/modules/basic_auth/src/PageCache/DisallowBasicAuthRequests.php, line 15

Namespace

Drupal\basic_auth\PageCache

Members

Name Modifiers Type Description
DisallowBasicAuthRequests::check public function Determines whether delivery of a cached page should be attempted. Overrides RequestPolicyInterface::check
RequestPolicyInterface::ALLOW constant Allow delivery of cached pages.
RequestPolicyInterface::DENY constant Deny delivery of cached pages.
doc_Drupal
2016-10-29 09:02:32
Comments
Leave a Comment

Please login to continue.