spring-security/docs
Gurunathan a4cd6f4278
Advise Overriding equals() and hashCode() in UserDetails Implementations
This commit adds a documentation note explaining the importance of
overriding equals() and hashCode() in custom UserDetails implementations.

The default SessionRegistryImpl in Spring Security uses an in-memory
ConcurrentMap<Object, Set<String>>, Map<String,SessionInformation> to
associate principals with sessions. If a custom UserDetails class does
not properly override equals() and hashCode(), user sessions may not
be tracked or matched correctly.

I believe this helps developers avoid subtle session management issues
when implementing custom authentication logic.

Signed-off-by: Gurunathan <129361658+Gurunathan16@users.noreply.github.com>
2025-05-21 12:41:44 -06:00
..
articles/src/docbook Deprecate OpenID 2.0 support 2020-05-12 09:37:56 -05:00
modules/ROOT Advise Overriding equals() and hashCode() in UserDetails Implementations 2025-05-21 12:41:44 -06:00
.gitignore upgrade Antora plugin and configure playbook provider to support local build 2023-01-17 09:46:24 -03:00
antora-playbook.yml Update Antora Spring UI to v0.4.18 2024-11-18 16:18:29 -06:00
antora.yml Merge branch '5.6.x' into 5.7.x 2023-06-16 20:23:19 -05:00
package.json Bump @springio/asciidoctor-extensions in /docs 2025-03-23 18:40:37 -07:00
spring-security-docs.gradle Merge branch '5.8.x' into 6.1.x 2024-04-19 14:24:58 -05:00