feat: opt-in golem15.user.jwt.token_cookie sets the HttpOnly session cookie on /login, /register and /activate-by-code instead of returning the token
Default off, so body-token clients are unchanged. When on, the cookie carries the auth.cookie attributes via bouncer.LoadCookieConfig and the body keeps user (and message); SameSite stays Lax, with no CSRF token; personal API tokens are untouched.
This commit is contained in:
@@ -5,6 +5,11 @@ jwt:
|
||||
blacklist_grace: 0
|
||||
leeway: 0
|
||||
blacklist_sweep_interval: 10m
|
||||
# On: POST /login, /register (when it signs the account in) and
|
||||
# /activate-by-code set the HttpOnly session cookie from auth.cookie.* and
|
||||
# leave token out of the body. A POST /refresh carried by that cookie
|
||||
# rewrites it either way. Keep auth.cookie.name token or auth_token.
|
||||
token_cookie: false
|
||||
activation:
|
||||
require_activation: true
|
||||
activate_mode: auto
|
||||
|
||||
Reference in New Issue
Block a user