-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
in: casAn issue in spring-security-casAn issue in spring-security-casin: coreAn issue in spring-security-coreAn issue in spring-security-corein: webAn issue in web modules (web, webmvc)An issue in web modules (web, webmvc)type: enhancementA general enhancementA general enhancement
Milestone
Description
It would be nice to provide custom serialization mechanism that uses Jackson for objects Spring Security places in session. This would make serializing much faster and ensure consistency when using things like Spring Session. Some of the interfaces (and classes) are:
- SecurityContext (SecurityContextImpl)
- Authentication (various implementations of it)
- UserDetails (User)
- CsrfToken (DefaultCsrfToken)
- SavedRequest (DefaultSavedRequest)
We might also try to provide compression on the serialization. For example when UserDetails is the principal of an Authentication, we can derive a UsernamePasswordAuthenticationToken from the UserDetails and assume SecurityContextImpl is used.
UPDATE spring-projects/spring-session#434 has must of the support we would need for this feature. We may want to merge those changes into Spring Security
Metadata
Metadata
Assignees
Labels
in: casAn issue in spring-security-casAn issue in spring-security-casin: coreAn issue in spring-security-coreAn issue in spring-security-corein: webAn issue in web modules (web, webmvc)An issue in web modules (web, webmvc)type: enhancementA general enhancementA general enhancement