'How to configure "accept Terms and Conditions" on Keycloak registration page

I use Keycloak 1.7.0-Final. The user must agree with Term and Conditions at registration.

I enabled "Terms and Conditions" in Authentication > Required actions, But nothing is shown on the registration page.

Also, I cannot find where to configure specific Terms and Condition files for each language.

Could you help?

Thank you.



Solution 1:[1]

By default existing users cannot have this page. You need to configure "Terms and Conditions" as "Default Action", then this will be applied by default for all new users.

For existing users, you need to put it manually unser "Users" > "Required actions".

Dont forget to customize the terms page under //themes/base/login/terms.ftl

Solution 2:[2]

You will see terms and conditions once the user has filled in the registration form and submits registration. You will have to override the terms.ftl (build your own theme) page if you want it customized and add your own messages locale - see Keycloak Docs - Themes ...

Solution 3:[3]

You can use Keycloakify to create a theme.
Here is the section related to customizing Terms and conditions.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 saberkan
Solution 2 ama
Solution 3 Joseph Garrone