Open MrChadMWood opened 3 weeks ago
@MrChadMWood , see https://docs.authcrunch.com/docs/authenticate/auth-cookie#intra-domain-cookies
I suspect cookie insecure on
is missing.
You might also need cookie domain localhost
. You really should not, but people had that issue.
See this issue for config snippets: https://github.com/greenpau/caddy-security/issues/337
If you still running into issue, feel free to reach out on Linkedin and we can get on Google Meet to troubleshoot.
Describe the issue
I am having issues creating a basic instance of Caddy that utilizes authentication / authorization via
caddy-security
locally. With the below configuration, authentication works fine. Authorization fails for an unknown reason, resulting in infinity redirects until the browser stops it.Configuration
Caddyfile
:Version Information
Provide output of
caddy list-modules --versions | grep -E "(auth|security)"
below:Expected behavior
I expected login to work using the default
webadmin
users credentials. Authentication does work, but authorization causes infinite redirects. Thecaddy.localhost
response is thus never received.Additional context
I am using docker. See my
docker.compose.yml
;with
Dockerfile
: