This small extensions adds an authenticator to Keycloak that allows you to set the Terms and Conditions Required Action on every authentication. This results in the user to accept or deny the Terms and Conditions every time.
- Move the
.jarfile from the releases page to/opt/keycloak/providers/ - Make sure it is loaded correctly by checking the provider info in the admin-console
- Enable
Terms and Conditionsfor your realm - Add
Set Terms and Conditionsto your custom authentication flow - Set the execution to
Required
Now a user should be asked to accept or decline the terms and conditions every time they try to login.