Skip to content

Commit 9ebb013

Browse files
committed
cleanup hash lookup request
1 parent cdf7c49 commit 9ebb013

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

doc/user-context.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Caching on user context works as follows:
2727
2. The :term:`caching proxy` receives the request. It sends a request
2828
(the *hash request*) with a special accept header
2929
(``application/vnd.fos.user-context-hash``) to a specific URL,
30-
e.g., ``/user_context_hash.php``.
30+
e.g., ``/_fos_user_context_hash``.
3131
3. The :term:`application` receives the hash request. The application knows the
3232
client’s user context (roles, permissions, etc.) and generates a hash based
3333
on that information. The application then returns a response containing that
@@ -96,7 +96,9 @@ Returning the User Context Hash
9696
-------------------------------
9797

9898
It is up to you to return the user context hash in response to the hash request
99-
(``/user_context_hash.php`` in step 3 above)::
99+
(``/_fos_user_context_hash`` in step 3 above)::
100+
101+
// <web-root>/_fos_user_context_hash/index.php
100102

101103
$hash = $hashGenerator->generateHash();
102104

tests/Functional/Fixtures/varnish-3/user_context.vcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ sub vcl_recv {
2424

2525
# Backup original URL
2626
set req.http.X-Fos-Original-Url = req.url;
27-
set req.url = "/user_context_hash.php";
27+
set req.url = "/_fos_user_context_hash";
2828

2929
# For functional tests
3030
call user_context_hash_url;

tests/Functional/Fixtures/varnish-4/user_context.vcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ sub vcl_recv {
2626

2727
# Backup original URL
2828
set req.http.X-Fos-Original-Url = req.url;
29-
set req.url = "/user_context_hash.php";
29+
set req.url = "/_fos_user_context_hash";
3030

3131
# For functional tests
3232
call user_context_hash_url;

0 commit comments

Comments
 (0)