spring-security/docs/modules/ROOT/pages
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
..
features Fix WebFlux authentication reference link 2025-03-20 14:38:07 -05:00
migration Change Idempotent to Read-Only 2023-11-07 16:25:28 -07:00
migration-7 Merge branch '6.1.x' into 6.2.x 2023-12-28 10:57:59 -06:00
native-image Merge branch '5.8.x' into 6.0.x 2023-06-18 21:33:58 -05:00
reactive Use proper configuration key 2025-04-29 13:37:51 -06:00
servlet Advise Overriding equals() and hashCode() in UserDetails Implementations 2025-05-21 12:41:44 -06:00
community.adoc overview/ -> ../ 2021-09-23 15:50:11 -05:00
getting-spring-security.adoc Fix Spring initializr link in 'Getting Spring Security' 2023-12-28 11:11:14 -06:00
index.adoc https docs download 2025-03-21 15:59:39 -05:00
modules.adoc Merge branch '5.8.x' into 6.0.x 2023-04-19 11:29:49 -03:00
prerequisites.adoc Update prerequisites documentation 2024-07-01 17:19:22 -06:00
samples.adoc overview/ -> ../ 2021-09-23 15:50:11 -05:00
whats-new.adoc Revert unnecessary commits from main 2024-05-08 13:49:18 -03:00