#1391: LoginService.kt

projectforge-business/src/main/kotlin/org/projectforge/login/LoginService.kt Service, projectforge-business/src/main/kotlin/org/projectforge/login/LoginService.kt 366 lines · 265 code · 70 comments · 31 blank
Spring @Service managing user authentication and session handling. Supports login with password checking, brute-force protection (LoginProtection), stay-logged-in cookies, 2FA requirement after login, session fixation prevention, and logout (clearing cookies, flushing user preferences to DB). Integrates with configurable LoginHandler implementations (LdapMaster, LdapSlave, or Default).

Git History

c771cc445 Refactor projectforge-keycloak to projectforge-idp with Authentik support
ba267847c Improve Keycloak password sync robustness and diagnostics
b78148558 Add Keycloak integration: new projectforge-keycloak module
868d6abb7 2025 -> 2026
bbdb5825b Scripts: exception -> log, UserContext.refreshUser() handling changed.
63081666f Source file headers: 2024-> 2025.
3c42485eb Migration stuff in progress... (all tests of all packages: OK).
cba940301 Migration stuff in progress...
4f5a458c9 Migration stuff in progress...
77bade6df javax.* -> jakarta.*
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
3c429405c LoginService: show last 2FA as time-ago message.
ca914dbb9 WIP: 2FA after login
4162bfe5c WIP: 2FA after login seems to work now fine...