New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redis Sample with GenericJackson2JsonRedisSerializer #434
Conversation
@jeetmp3 Nice I have not had a chance to dig into this too much yet but I wonder how much of the default auto-configure this negates? I wonder if it could be packaged up to auto-configures after the default configuration and enhance it if a conditional property is set or some such thing. I am sure it was probably not your intention to worry about this for a sample, but I am thinking about making it reusable as well. Thanks, |
Hmm nvm I see there is no |
@jeetmp3 Wow this is awesome! I need to spend a little more time reviewing this on Monday. Thank you for submitting this. We may want to get some of the Jackson Support moved to Spring Security as this would be beneficial in many other contexts. I'll review on Monday and we can go from there. Thanks for this! |
@jeetmp3 PS If contributing the Jackson Support is something that interests you, please comment on spring-projects/spring-security#3736 If we can get some tests added for the support, that will be a good start getting this into Spring Security proper. Thanks again! |
@wgorder this sample doesn't use Jackson default auto-configure. I haven't focused on JacksonAutoConfiguration to configure ObjectMapper. |
@rwinch sounds good to me I'll comment on that. Just wanted to confirm about test cases, you want tests for mix-in classes right? |
@jeetmp3 Thanks for the fast reply. Yes I would like to ensure we have some tests for the mix-in classes. At that point we can add the mixins to Spring Security. |
@jeetmp3 Also...in terms of JacksonAutoConfiguration this is something we can do later. If we have the support there at least it can be done even if it is a little more work. We will be releasing Spring Security 4.1 RC1 on Wednesday, so it would be ideal for us to get it in before that. However, that is probably not realistic so we may need to wait until another release. |
Deserializer added for Cookie and UsernameAndPasswordAuthenticationToken
@rwinch I've added tests for mix-in classes. |
@rwinch here is sample web-app which includes Spring Security, Spring session with GenericJackson2JsonRedisSerializer (#406). Kindly review the code and let me know if any changes are required.