-
Update application-credentials.yml with your google client id/secret
-
Run
gradlew bootBuildImage -
A
docker-compose.ymlwas created for simplicity, but you can just run the created image with the proper variables -
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 problemNote: 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