Co-authored-by: Christophe Frattino <christophe.frattino@elca.ch> Co-authored-by: Francis PEROT <francis.perot@elca.ch> Co-authored-by: rpo <harture414@gmail.com> Co-authored-by: mposolda <mposolda@gmail.com> Co-authored-by: Jan Lieskovsky <jlieskov@redhat.com> Co-authored-by: Denis <drichtar@redhat.com> Co-authored-by: Tomas Kyjovsky <tkyjovsk@redhat.com>
1.1 KiB
Executable file
Example Custom Authenticator
-
First, Keycloak must be running.
-
Execute the follow. This will build the example and deploy it
$ mvn clean install wildfly:deploy
-
Copy the secret-question.ftl and secret-question-config.ftl files to the themes/base/login directory.
-
Login to admin console. Hit browser refresh if you are already logged in so that the new providers show up.
-
Go to the Authentication menu item and go to the Flow tab, you will be able to view the currently defined flows. You cannot modify an built in flows, so, to add the Authenticator you have to copy an existing flow or create your own. Copy the "Browser" flow.
-
In your copy, click the "Actions" menu item and "Add Execution". Pick Secret Question
-
Next you have to register the required action that you created. Click on the Required Actions tab in the Authentication menu. Click on the Register button and choose your new Required Action. Your new required action should now be displayed and enabled in the required actions list.