[keycloak-user] Problem with example provider authenticator in version 3.0.0.Final

Fabien HINAULT fabien.hinault at ariadnext.com
Tue May 2 06:00:19 EDT 2017


Hello,

I have a problem with the example provider called authenticator which is
released with
keycloak-demo-3.0.0.Final.
After having added the provider, and added the execution "Secret Question"
to the browser flow,
I don't have a page "Secret Question" while logging into the client app.
Instead, I am directly redirected to the application.
There is a warning in keycloak's output:
"10:48:24,009 WARN  [org.keycloak.services.managers.AuthenticationManager]
(default task-44) Could not find configuration for Required Action
secret_question_config, did you forget to register it?"

Did I miss something?

Fabien

------

Included: a log in debug, with just the logging of user u, with execution
"Secret Question" added.

See complete scenario below:

I have built the jar authentication-required-action-example.jar and
I have put it in the directory keycloak/providers.
I run keycloak/bin/standalone.sh

In the admin console (http://localhost:8080/auth/admin/master/console/):
I create a new realm called "demo",
I switch to this realm,
I create a user with username "u",
I change its password,
I create a role "ROLE_USER",
I give the role ROLE_USER to user u,
I create a client with client ID "test-fabien", redirect URIs
http://localhost:8081/*,
authorization enabled to ON.

I run a test client application
with adequate configuration settings.

In a private session in Firefox:
I type http://localhost:8081/test.html in the address bar,
I am redirected to keycloak's authentication page for realm "demo"
I enter username u and password,
the first time, I am redirected to the password change page, then
I am redirected back to the page test.html.

In the Authentication part of Keycloak admin console:
I copy the brower flow into "Copy of browser",
I add the execution "Secret Question", which comes from the added provider,
I set it as "required",
In the binding tab, I bind "Copy of browser" as browser flow, then save.

In a new private session in Firefox:
I type http://localhost:8081/test.html in the address bar,
I am redirected to keycloak's authentication page for realm "demo"
I enter username u and password.
Here, I would expect a "Secret Question" page.
Instead, I am directly redirected back to the page test.html.
In the output of standalone.sh, I can read:
"10:48:24,009 WARN  [org.keycloak.services.managers.AuthenticationManager]
(default task-44) Could not find configuration for Required Action
secret_question_config, did you forget to register it?"


More information about the keycloak-user mailing list