authcrunch / authcrunch.github.io

Documentation for Caddy v2 Auth Portal and Authorize Plugins.
77 stars 32 forks source link

Can't enable local authentication setup #13

Closed agucova closed 2 years ago

agucova commented 2 years ago

Hi,

I'm trying to replicate https://github.com/authp/authp.github.io/blob/main/assets/conf/local/Caddyfile but I keep getting server timeouts on all authentication domains. The minimally reproducible example is something like:

{
      security {
          authentication portal myportal {
              cookie domain agucova.dev
              backend local {env.HOME}/.local/caddy/users.json local
          }
      }
}

lepton.agucova.dev {
    route {
        authenticate with myportal
    }
    tls {
        dns cloudflare REDACTED
    }
}

But all I get is constant timeouts from the server. This is caddy latest built from the page with caddy-security under Linux ARM64.

The logs themselves aren't really helpful, and seem completely normal.

My objective is to have an authentication domain (lepton.agucova.dev) and use it to authorize access to internal apps on other subdomains.

agucova commented 2 years ago

Wrong repo. Sorry!