Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with WebauthN #71

Closed
mattronix opened this issue Nov 2, 2023 · 2 comments
Closed

Issue with WebauthN #71

mattronix opened this issue Nov 2, 2023 · 2 comments

Comments

@mattronix
Copy link

mattronix commented Nov 2, 2023

On Keycloak Version 22.0.5:

we get the following error:
image

Would you be able to fix it or help me figure out how to fix it :) ?

Here are the trace logs if they help!

Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: 2023-11-02 14:00:35,873 SEVERE [freemarker.runtime] (executor-thread-6) Error executing FreeMarker template: freemarker.core.NonStringOrTemplateOutputException: For "${...}" content: Expected a string or something automatically convertible to string (number, date or boolean), or "template output" , but this has evaluated to a sequence (wrapper: f.t.SimpleSequence):
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: ==> signatureAlgorithms  [in template "webauthn-register.ftl" at line 47, column 31]
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: ----
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: FTL stack trace ("~" means nesting-related):
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011- Failed at: ${signatureAlgorithms}  [in template "webauthn-register.ftl" at line 47, column 29]
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: ----
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at freemarker.core.EvalUtil.coerceModelToTextualCommon(EvalUtil.java:525)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at freemarker.core.EvalUtil.coerceModelToStringOrMarkup(EvalUtil.java:401)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at freemarker.core.EvalUtil.coerceModelToStringOrMarkup(EvalUtil.java:370)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at freemarker.core.DollarVariable.calculateInterpolatedStringOrMarkup(DollarVariable.java:104)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at freemarker.core.DollarVariable.accept(DollarVariable.java:63)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: 2023-11-02 14:00:35,879 ERROR [org.keycloak.forms.login.freemarker.FreeMarkerLoginFormsProvider] (executor-thread-6) Failed to process template: org.keycloak.theme.FreeMarkerException: Failed to process template webauthn-register.ftl
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.keycloak.theme.freemarker.DefaultFreeMarkerProvider.processTemplate(DefaultFreeMarkerProvider.java:52)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.keycloak.forms.login.freemarker.FreeMarkerLoginFormsProvider.processTemplate(FreeMarkerLoginFormsProvider.java:549)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.keycloak.forms.login.freemarker.FreeMarkerLoginFormsProvider.createForm(FreeMarkerLoginFormsProvider.java:342)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.keycloak.authentication.requiredactions.WebAuthnRegister.requiredActionChallenge(WebAuthnRegister.java:165)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.keycloak.services.managers.AuthenticationManager.executeAction(AuthenticationManager.java:1335)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.keycloak.services.managers.AuthenticationManager.lambda$executionActions$18(AuthenticationManager.java:1282)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:400)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: 2023-11-02 14:00:35,883 ERROR [org.keycloak.headers.DefaultSecurityHeadersProvider] (executor-thread-6) MediaType not set on path /realms/master/login-actions/required-action, with response status 500
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: 2023-11-02 14:00:35,883 ERROR [org.keycloak.services.error.KeycloakErrorHandler] (executor-thread-6) Uncaught server error: jakarta.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.keycloak.headers.DefaultSecurityHeadersProvider.addHeaders(DefaultSecurityHeadersProvider.java:75)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.keycloak.services.filters.KeycloakSecurityHeadersFilter.filter(KeycloakSecurityHeadersFilter.java:43)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.jboss.resteasy.core.interception.jaxrs.ContainerResponseContextImpl.filter(ContainerResponseContextImpl.java:329)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.jboss.resteasy.core.ServerResponseWriter.executeFilters(ServerResponseWriter.java:243)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.jboss.resteasy.core.ServerResponseWriter.writeNomapResponse(ServerResponseWriter.java:100)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.jboss.resteasy.core.ServerResponseWriter.writeNomapResponse(ServerResponseWriter.java:73)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.jboss.resteasy.core.SynchronousDispatcher.writeResponse(SynchronousDispatcher.java:518)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:458)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:240)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:154)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:321)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:157)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:229)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at io.quarkus.resteasy.runtime.standalone.RequestDispatcher.service(RequestDispatcher.java:82)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler.dispatch(VertxRequestHandler.java:147)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler.handle(VertxRequestHandler.java:84)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler.handle(VertxRequestHandler.java:44)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1284)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:177)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:141)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at io.quarkus.vertx.http.runtime.options.HttpServerCommonHandlers$1.handle(HttpServerCommonHandlers.java:58)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at io.quarkus.vertx.http.runtime.options.HttpServerCommonHandlers$1.handle(HttpServerCommonHandlers.java:36)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1284)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:177)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:141)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.keycloak.quarkus.runtime.integration.web.QuarkusRequestFilter.lambda$createBlockingHandler$0(QuarkusRequestFilter.java:82)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at io.quarkus.vertx.core.runtime.VertxCoreRecorder$14.runWith(VertxCoreRecorder.java:576)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
Nov  2 14:00:35 techinc-keycloak kc.sh[3817775]: #011at java.base/java.lang.Thread.run(Thread.java:833)
@mattronix
Copy link
Author

@lukin whoops this may be a duplicate, i had overlooked the other one let me know if it should be closed?

@mattronix
Copy link
Author

duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant