spring-attic / spring-security-oauth

Support for adding OAuth1(a) and OAuth2 features (consumer and provider) for Spring web applications.
http://github.com/spring-projects/spring-security-oauth
Apache License 2.0
4.69k stars 4.04k forks source link

AuthorizationCodeResourceDetails not serializable #1148

Open H3llK33p3r opened 7 years ago

H3llK33p3r commented 7 years ago

Hi it seems that we cannot use the spring session module spring-security- oauth2.0. In my spring boot project (using security oauth 2.0.14), there is failure to store the token (in Hazelcast that used object serialization) with the spring session dependency.

Caused by: java.io.NotSerializableException: org.springframework.security.oauth2.client.token.grant.code.AuthorizationCodeResourceDetails

The bean can be serialized but it does not implement the serialize interface.

Can you please fix that ?

pkrajanand commented 5 years ago

Hi, just curious if you found a way to get around it. Thanks.

H3llK33p3r commented 5 years ago

That is an old ticket don't remember my fix but I think that I have encapsulate the token into another serializable.