Auth0 Home Blog Docs

Response doesn't get redirected from CallBack controller

spring
java
#1

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…?

#2

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.

#3

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.

#4

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?

#5

Thank you @konrad.sopala. Just raised the issue on GitHub.

1 Like
#6

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!

#7

Can you share the link to your issue? I checked our java security sample repos and I can’t find it. Thanks a lot!

#9

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!

#10

Here is the link:

#11

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.