ADR 001 Accepted
A session, not a token
- context
- The HTML pages are rendered by the same server with Thymeleaf: there is no separate frontend.
- decision
- Login through Spring Security’s form and a server-side session, not a JWT.
- consequences
- Spring Security handles login, logout and redirects with no extra code, and logging out really ends the session. In the driving school system, with a separate client, I used a JWT instead.