[keycloak-user] Keycloak 1.9.4 custom authenticator reference

Tech @ PSYND tech at psynd.net
Thu May 12 10:29:56 EDT 2016


Dear experts,

I'm working with keycloak 1.9.4.

We ran some customization with the Authenticators: we implemented a 
couple of authenticators in sequence, like provide an OTP token, provide 
an additional information etc.

We are facing several issues:
1) we create our custom Flow from the Authentication interface
2) we add our 4 form (Add Execution)
3) from the Flows Module we select the order in which they should be 
selected
4) we define in the binding sour flow as Browser Flow
5) we register and enable our executions from the Required Actions 
module.


About point 3): even if we change the order of the flows using the 
priorities arrows, the forms doesn't show up in order.

We tried to delete and to re-create, but we don't understand if we 
should do something else to impose the order we need.

After creation, we decided to remove each single "Execution" and then 
remove the flow.

We set again the "Browser Flow" to the standard "Browser", we removed 
the created jars from the provider/ directory, but every time that we 
try to authenticate we get an error saying that there is still an 
existing reference to the old deployment, although the provider/ 
directory is currently empty.




16:00:40,199 ERROR [io.undertow.request] (default task-4) UT005023: 
Exception handling request to 
/auth/realms/etatvs/login-actions/required-action: 
org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: 
Unable to find factory for Required Action: renew_password_config did 
you forget to declare it in a META-INF/services file?
        at 
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
         at 
io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)
         at 
io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)
         at 
io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
         at 
io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)
         at 
io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)
         at 
io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)
Caused by: java.lang.RuntimeException: Unable to find factory for 
Required Action: renew_password_config did you forget to declare it in a 
META-INF/services file?
         at 
org.keycloak.services.managers.AuthenticationManager.executionActions(AuthenticationManager.java:569)
         at 
org.keycloak.services.managers.AuthenticationManager.actionRequired(AuthenticationManager.java:504)
         at 
org.keycloak.services.managers.AuthenticationManager.nextActionAfterAuthentication(AuthenticationManager.java:426)
         at 
org.keycloak.services.resources.LoginActionsService$Checks.verifyRequiredAction(LoginActionsService.java:302)
         at 
org.keycloak.services.resources.LoginActionsService.processRequireAction(LoginActionsService.java:856)



Could you support?

Thanks









More information about the keycloak-user mailing list