Signup
Test valid enrollment, duplicate identity, malformed input, and the policy after the first administrator exists.
Daptin
Run Daptin →
Authentication guide
Configure enrollment and recovery before opening signup. Then verify signin, JWT use, credential-change invalidation, groups, and an optional second factor as one connected path.
Account policy
A fresh server allows creation of the first account and administrator setup. Confirm the intended post-bootstrap signup policy before exposing the server publicly. Configure email delivery if verification or password recovery depends on messages reaching the user.
Test valid enrollment, duplicate identity, malformed input, and the policy after the first administrator exists.
Confirm verification tokens expire and cannot be reused after successful account verification.
Exercise request, token expiry, password replacement, and the behavior of sessions issued before replacement.
Document how an operator restores access without weakening the normal account path.
First request
curl -X POST http://localhost:6336/action/user_account/signup \
-H "Content-Type: application/json" \
-d '{"attributes":{"email":"test@example.com","name":"Test User","password":"replace-this-password","passwordConfirm":"replace-this-password"}}'
curl -X POST http://localhost:6336/action/user_account/signin \
-H "Content-Type: application/json" \
-d '{"attributes":{"email":"test@example.com","password":"replace-this-password"}}'
Use a disposable account and a non-production password. Inspect the action response for the issued token, then send it as a Bearer token to a permissioned endpoint. Repeat with the wrong password and confirm access is denied.
Sessions
Daptin compares bcrypt password hashes and issues JWTs for authenticated requests. Authentication-version checks allow account or password changes to invalidate tokens issued under the previous credential state.
Second factor
Generate the shared secret for an authenticated account and require confirmation with a current code.
Test accepted clock windows, bounded attempts, and reuse of a previously accepted code.
Establish the support or administrator process for a lost authenticator before requiring TOTP.
TOTP strengthens account authentication. Record and action permissions still decide what the account may do.
Detailed TOTP guide →End-to-end test