Hi, was trying to integrate Auth0 authentication to our existing app. For this, we are using spring security sample app. During login, request gets redirected to Auth0 application properly, after successful login it gets redirected to CallBack controller but after that whenever it tries to redirect it throws below exception,
org.springframework.data.redis.serializer.SerializationException: Cannot serialize; nested exception is org.springframework.core.serializer.support.SerializationFailedException: Failed to serialize object using DefaultSerializer; nested exception is java.io.NotSerializableException: com.auth0.jwt.JWTDecoder
at org.springframework.data.redis.serializer.JdkSerializationRedisSerializer.serialize(JdkSerializationRedisSerializer.java:93) ~[spring-data-redis-1.8.9.RELEASE.jar:na]
at org.springframework.data.redis.core.AbstractOperations.rawHashValue(AbstractOperations.java:171) ~[spring-data-redis-1.8.9.RELEASE.jar:na]
at org.springframework.data.redis.core.DefaultHashOperations.putAll(DefaultHashOperations.java:129) ~[spring-data-redis-1.8.9.RELEASE.jar:na]
Every time it gives error like
java.io.NotSerializableException: com.auth0.jwt.JWTDecoder
Is this class not serialized…?
Hey @sdeshmukh!
I have no experience in Java but I’ll try to find some info on this. In the meantime I added java and spring tags to your topic so it’s easily searchable and open for wider audience if someone has knowledge on that.
I’m having the exact same problem and have been fighting to get this working in Google AppEngine for the last couple of days. Any insight/help/fix you can provide will be greatly appreciated.
Hey @pavlos.krontiras and @sdeshmukh!
I just talked with repo maintainers. Could you actually open an issue on GitHub and repaste what you’ve written here so they can look at it and help you fix it step by step?
Thank you @konrad.sopala. Just raised the issue on GitHub.
1 Like
Thanks a lot! Just pinged repo maintainers. We’ll continue communicating in that issue thread and once we establish the reason and the fix we’ll publish it here!
Can you share the link to your issue? I checked our java security sample repos and I can’t find it. Thanks a lot!
Have you seen my last message @pavlos.krontiras? Could you share the link to your issue here for better tracking and communication?
Thanks a lot for that!
Thanks a lot! I’m passing it to repo maintainers to look into it! Further communication will probably be carried in the issue thread on GitHub.