Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

keycloak

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.

like image 331
iulia zidaru Avatar asked Jan 03 '16 19:01

iulia zidaru


2 Answers

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

like image 195
saberkan Avatar answered Sep 17 '22 12:09

saberkan


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 ...

like image 44
ama Avatar answered Sep 20 '22 12:09

ama