BenjaminFavre / keycloak-apple-social-identity-provider

Apple Social Identity Provider for Keycloak
Apache License 2.0
108 stars 53 forks source link

"An internal server error has occurred" in keycloak after Apple sign in #37

Open hvma411 opened 1 year ago

hvma411 commented 1 year ago

Hello there,

I have a problem after successful apple auth. I checked a few times and all my credentials provided in provider settings are correct but redirecting after apple sign in creates error "An internal server error has occurred" in keycloak. My keycloak version is 21.1.0. I checked keycloak logs and this is what it says:

ubuntu-keycloakv2-1 | 2023-05-19 13:11:05,695 ERROR [org.keycloak.services.error.KeycloakErrorHandler] (executor-thread-15) Uncaught server error: java.lang.NoSuchMethodError: ‘void org.keycloak.broker.oidc.OIDCIdentityProvider$OIDCEndpoint.(org.keycloak.broker.oidc.OIDCIdentityProvider, org.keycloak.broker.provider.IdentityProvider$AuthenticationCallback, org.keycloak.models.RealmModel, org.keycloak.events.EventBuilder)’ ubuntu-keycloakv2-1 | at fr.benjaminfavre.provider.AppleIdentityProvider$OIDCEndpoint.(AppleIdentityProvider.java:108) ubuntu-keycloakv2-1 | at fr.benjaminfavre.provider.AppleIdentityProvider.callback(AppleIdentityProvider.java:45) ubuntu-keycloakv2-1 | at org.keycloak.services.resources.IdentityBrokerService.getEndpoint(IdentityBrokerService.java:420) ubuntu-keycloakv2-1 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ubuntu-keycloakv2-1 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ubuntu-keycloakv2-1 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ubuntu-keycloakv2-1 | at java.base/java.lang.reflect.Method.invoke(Method.java:568) ubuntu-keycloakv2-1 | at org.jboss.resteasy.core.ResourceLocatorInvoker.constructLocator(ResourceLocatorInvoker.java:107) ubuntu-keycloakv2-1 | at org.jboss.resteasy.core.ResourceLocatorInvoker.resolveTargetFromLocator(ResourceLocatorInvoker.java:87) ubuntu-keycloakv2-1 | at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:148) ubuntu-keycloakv2-1 | at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:183) ubuntu-keycloakv2-1 | at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:141) ubuntu-keycloakv2-1 | at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:32) ubuntu-keycloakv2-1 | at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:492) ubuntu-keycloakv2-1 | at org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:261) ubuntu-keycloakv2-1 | at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:161) ubuntu-keycloakv2-1 | at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:364) ubuntu-keycloakv2-1 | at org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:164) ubuntu-keycloakv2-1 | at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:247) ubuntu-keycloakv2-1 | at io.quarkus.resteasy.runtime.standalone.RequestDispatcher.service(RequestDispatcher.java:73) ubuntu-keycloakv2-1 | at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler.dispatch(VertxRequestHandler.java:151) ubuntu-keycloakv2-1 | at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler.handle(VertxRequestHandler.java:82) ubuntu-keycloakv2-1 | at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler.handle(VertxRequestHandler.java:42) ubuntu-keycloakv2-1 | at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1284) ubuntu-keycloakv2-1 | at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:173) ubuntu-keycloakv2-1 | at io.vertx.ext.web.impl.RoutingContextWrapper.next(RoutingContextWrapper.java:200) ubuntu-keycloakv2-1 | at io.quarkus.vertx.http.runtime.StaticResourcesRecorder$2.handle(StaticResourcesRecorder.java:84) ubuntu-keycloakv2-1 | at io.quarkus.vertx.http.runtime.StaticResourcesRecorder$2.handle(StaticResourcesRecorder.java:71) ubuntu-keycloakv2-1 | at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1284) ubuntu-keycloakv2-1 | at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:173) ubuntu-keycloakv2-1 | at io.vertx.ext.web.impl.RoutingContextWrapper.next(RoutingContextWrapper.java:200) ubuntu-keycloakv2-1 | at io.quarkus.vertx.http.runtime.VertxHttpRecorder$6.handle(VertxHttpRecorder.java:430) ubuntu-keycloakv2-1 | at io.quarkus.vertx.http.runtime.VertxHttpRecorder$6.handle(VertxHttpRecorder.java:408) ubuntu-keycloakv2-1 | at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1284) ubuntu-keycloakv2-1 | at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:173) ubuntu-keycloakv2-1 | at io.vertx.ext.web.impl.RoutingContextWrapper.next(RoutingContextWrapper.java:200) ubuntu-keycloakv2-1 | at org.keycloak.quarkus.runtime.integration.web.QuarkusRequestFilter.lambda$createBlockingHandler$0(QuarkusRequestFilter.java:82) ubuntu-keycloakv2-1 | at io.quarkus.vertx.core.runtime.VertxCoreRecorder$14.runWith(VertxCoreRecorder.java:576) ubuntu-keycloakv2-1 | at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449) ubuntu-keycloakv2-1 | at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478) ubuntu-keycloakv2-1 | at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29) ubuntu-keycloakv2-1 | at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29) ubuntu-keycloakv2-1 | at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ubuntu-keycloakv2-1 | at java.base/java.lang.Thread.run(Thread.java:833) ubuntu-keycloakv2-1 |

What can I do to fix this?