Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breakfix: How to get the default password when using Local authentication? #366

Open
borjapazr opened this issue Oct 30, 2024 · 0 comments

Comments

@borjapazr
Copy link

Describe the issue

Hello! 👋

I am following the documentation guidelines to configure the Local authentication but, when I try to implement the basic example, and the users.json file is automatically created, I do not get the password in the logs as mentioned in the following page: https://docs.authcrunch.com/docs/authenticate/local/local

Configuration

Paste full Caddyfile below:

{
  security {
    local identity store localdb {
      realm local
      path {$HOME}/.local/caddy/users.json
    }

    authentication portal myportal {
      enable identity store localdb
    }
  }
}

example.com {
  authenticate with myportal
}

Version Information

Provide output of caddy list-modules --versions | grep -E "(auth|security)" below:

http.authentication.hashes.bcrypt v2.8.4
http.authentication.providers.http_basic v2.8.4
http.handlers.authentication v2.8.4
tls.client_auth.verifier.leaf v2.8.4
http.authentication.providers.authorizer v1.1.29
http.handlers.authenticator v1.1.29
security v1.1.29

Expected behavior

I was expecting the logs referenced in the documentation to be displayed, but instead I only get the following:

{"level":"info","ts":1730305267.239055,"logger":"security","msg":"created default admin user for the database","username":"webadmin","email":"[email protected]","roles":["authp/admin"]}

How can I get the default password that is auto-generated when Caddy is started for the first time?

Thanks in advance 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants