<div dir="ltr">Keycloak 1.9.1-Final<div><div class="gmail_signature"><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div></div></div></div></div>
<div><br></div><div>I&#39;m having some trouble implementing a custom FormAction to an authentication Flow.  I&#39;ve hit a wall and decided to step-back and make sure that I am performing the correct steps in the Keycloak admin interface to add a FormAction to a flow.  As a test, I want to remove and then add the stock &quot;Profile Validation&quot; execution to a Registration flow.  I&#39;m getting a (hopefully reproducible) exception performing the following steps.  I&#39;m attempting to follow the documentation in section &quot;34.5.3 Adding FormAction to the Registration Flow&quot;</div><div><br></div><div>1.  Click main &quot;Authentication&quot; link.</div><div>2.  Select &quot;Registration&quot; flow</div><div>3.  Press &quot;Copy&quot; button to get a flow I can edit</div><div>4.  Name the copy &quot;test&quot; </div><div>5.  From the &quot;Actions&quot; pull down for the &quot;Profile Validation&quot; execution - choose &quot;delete&quot;</div><div>6.  From the &quot;Actions&quot; pull down for the &quot;Test Registration Form&quot; choose &quot;Add Execution&quot;</div><div>7.  Select the &quot;Profile Validation&quot; provider and press &quot;Save&quot;</div><div><br></div><div>I get the message &quot;Error! An unexpected server error has occurred.&quot;  </div><div><br></div><div>Is this reproducible?  Am I missing a step here or perhaps not understanding something? </div><div><br></div><div>Thanks for your help!</div><div>Kyle</div><div><br></div><div>Here is the stacktrace from keycloak logs:</div><div><br></div><div><div>08:58:13,611 ERROR [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-101) RESTEASY002005: Failed executing POST /admin/realms/master/authentication/flows/test registration form/executions/execution: org.jboss.resteasy.spi.BadRequestException: No authentication provider found for id: registration-profile-action</div><div><span class="" style="white-space:pre">        </span>at org.keycloak.services.resources.admin.AuthenticationManagementResource.addExecution(AuthenticationManagementResource.java:394)</div><div><span class="" style="white-space:pre">        </span>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</div><div><span class="" style="white-space:pre">        </span>at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)</div><div><span class="" style="white-space:pre">        </span>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</div><div><span class="" style="white-space:pre">        </span>at java.lang.reflect.Method.invoke(Method.java:498)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:139)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:295)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:249)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:138)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:107)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:133)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:107)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:133)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:101)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:395)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:202)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:221)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)</div><div><span class="" style="white-space:pre">        </span>at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)</div><div><span class="" style="white-space:pre">        </span>at org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:78)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)</div><div><span class="" style="white-space:pre">        </span>at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)</div><div><span class="" style="white-space:pre">        </span>at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)</div><div><span class="" style="white-space:pre">        </span>at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)</div><div><span class="" style="white-space:pre">        </span>at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)</div><div><span class="" style="white-space:pre">        </span>at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)</div><div><span class="" style="white-space:pre">        </span>at java.lang.Thread.run(Thread.java:745)</div></div><div><br></div></div>