Skip to content

msosa/NativeSpringSession

Repository files navigation

  1. Update application-credentials.yml with your google client id/secret

  2. Run gradlew bootBuildImage

  3. A docker-compose.yml was created for simplicity, but you can just run the created image with the proper variables

  4. Go to localhost:8080 where it will ask you to login via google, once you do you will see the error

Caused by: com.oracle.svm.core.jdk.UnsupportedFeatureError: SerializationConstructorAccessor class not found for declaringClass: org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest (targetConstructorClass: java.lang.Object). Usually adding org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest to serialization-config.json fixes the problem

Note: I also tried with GenericJackson2JsonRedisSerializer, you can uncomment the code in SessionConfig.kt to see the different error there. This error is, make sure to clear the redis keys

org.springframework.data.redis.serializer.SerializationException: Could not read JSON:Class org.springframework.security.oauth2.client.jackson2.OAuth2AuthorizationRequestDeserializer has no default (no arg) constructor

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages