Got SerializationException when using OAuth 2.0 login and GenericJackson2JsonRedisSerializer #8373
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
status: invalid
An issue that we don't feel is valid
Summary
I am using spring oauth2 to authenticate&authorize,and using spring redis session. I am getting a SerializationException if i change the redis serializer to GenericJackson2JsonRedisSerializer.
Actual Behavior
I enable oauth2Login at WebSecurityConfigurerAdapter.
and specify redis to store session.
It works well, but i want information to be stored in JSON format in redis,so i add a RedisConfiguration.
Then i got a Exception
I also tried to add a OAuth2AuthorizationRequestMixin class.
But then i got another Exception.
Version
org.springframework.boot:spring-boot-starter-security:2.1.12.RELEASE
org.springframework.boot:spring-boot-starter-oauth2-client:2.1.12.RELEASE
org.springframework.security.oauth:spring-security-oauth2:2.3.3.RELEASE
org.springframework.session:spring-session-data-redis:2.1.9.RELEASE
io.lettuce:lettuce-core:5.2.1.RELEASE
The text was updated successfully, but these errors were encountered: