From e2a6e4e212c54dd64f4c14c757b013a0238d35ee Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Thu, 26 Nov 2020 14:20:14 -0500 Subject: [PATCH] docs: Mention the auth placeholder in basicauth docs (#117) --- src/docs/markdown/caddyfile/directives/basicauth.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/docs/markdown/caddyfile/directives/basicauth.md b/src/docs/markdown/caddyfile/directives/basicauth.md index 4418f55..b364646 100644 --- a/src/docs/markdown/caddyfile/directives/basicauth.md +++ b/src/docs/markdown/caddyfile/directives/basicauth.md @@ -12,6 +12,8 @@ When a user requests a resource that is protected, the browser will prompt the u Caddy configuration does not accept plaintext passwords; you MUST hash them before putting them into the configuration. The [`caddy hash-password`](/docs/command-line#caddy-hash-password) command can help with this. +After a successful authentication, the `{http.auth.user.id}` placeholder will be available, which contains the authenticated username. + ## Syntax