# 24 require terms and conditions at every login

**URL:** <https://forum.keycloak.org/t/24-require-terms-and-conditions-at-every-login/26140>\
**Category:** Configuring the server\
**Tags:** authentication\
**Created:** [May 21, 2024, 1:08pm UTC](https://forum.keycloak.org/t/24-require-terms-and-conditions-at-every-login/26140 "2024-05-21T13:08:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chadwitk](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/chadwitk/32/10169_2.png) [@chadwitk](https://forum.keycloak.org/u/chadwitk)\
**Post date:** [May 21, 2024, 1:08pm UTC](https://forum.keycloak.org/t/24-require-terms-and-conditions-at-every-login/26140/1 "2024-05-21T13:08:17Z")

</div>

Looking to force users to approve terms and conditions at every login. I have it working for first broker login, but need to have it at every login.

---

<div class="post-metadata">

**Author:** ![xgp](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/xgp/32/2589_2.png) [@xgp](https://forum.keycloak.org/u/xgp)\
**Post date:** [May 21, 2024, 7:53pm UTC](https://forum.keycloak.org/t/24-require-terms-and-conditions-at-every-login/26140/2 "2024-05-21T19:53:16Z")

</div>

I don’t know that you can do this with the built-in T&C required action. You could probably extend it and always re-add it to the user in the `evaluateTriggers` method, but this would require installing a custom extension.

---

<div class="post-metadata">

**Author:** ![stancristian88](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/stancristian88/32/6845_2.png) [@stancristian88](https://forum.keycloak.org/u/stancristian88)\
**Post date:** [May 23, 2024, 7:22pm UTC](https://forum.keycloak.org/t/24-require-terms-and-conditions-at-every-login/26140/3 "2024-05-23T19:22:39Z")

</div>

You can implement your custom event listener, and listen on events like login. On that event handler you can simply add on the logged in user the T&C required action. Should work.
