Loredra L
Loredra L

Reputation: 1553

Keycloak term and condition as a seperate page

When configured in Authentication, newly registered user can see the Term and Condition page of Keycloak for the first time. After that, they cannot see it anymore

I would like to have a simple link to that page for anyone to view the content. The best would be an static url pointing to a template.

Is it achievable with Keycloak?

Upvotes: 2

Views: 2858

Answers (1)

Daniel R
Daniel R

Reputation: 70

This can be done by creating your own keycloak themes. You can for example create a static url in the login template (login.ftl) that points to terms and condition template (terms.ftl).

You can also create a terms.html and place it in the resource folder inside the login folder. Then link to that html file inside the login.ftl with:

<a href="${url.resourcesPath}/terms.html"> terms and conditions</a>

Doing the second example forces you to maintain the terms and conditions in two files.

Upvotes: 3

Related Questions