<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Stian,<br><br>I could find the example implementation here:<br><br><a href="https://github.com/keycloak/keycloak/blob/master/examples/providers/rest/src/main/java/org/keycloak/examples/rest/HelloResourceProvider.java" target="_blank">https://github.com/keycloak/keycloak/blob/master/examples/providers/rest/src/main/java/org/keycloak/examples/rest/HelloResourceProvider.java</a><br><br>But how can I return an freemarker template?<br><br>Thanks!<br><br><div><hr id="stopSpelling">Date: Mon, 30 May 2016 07:52:47 +0200<br>Subject: Re: [keycloak-user] Terms and Conditions<br>From: sthorger@redhat.com<br>To: palermo@pobox.com<br>CC: keycloak-user@lists.jboss.org<br><br><div dir="ltr">You could also use the realm resource SPI [1] to add a static page for the terms and conditions.<div><br></div><div>For server-side validation you can use a custom registration flow [2]<br><div><br></div><div>[1] <a href="https://github.com/keycloak/keycloak/blob/master/server-spi/src/main/java/org/keycloak/services/resource/RealmResourceProvider.java" target="_blank">https://github.com/keycloak/keycloak/blob/master/server-spi/src/main/java/org/keycloak/services/resource/RealmResourceProvider.java</a></div></div><div>[2] <a href="http://keycloak.github.io/docs/userguide/keycloak-server/html/auth_spi.html#d4e3969" target="_blank">http://keycloak.github.io/docs/userguide/keycloak-server/html/auth_spi.html#d4e3969</a></div></div><div class="ecxgmail_extra"><br><div class="ecxgmail_quote">On 30 May 2016 at 00:48, Bruno Palermo <span dir="ltr"><<a href="mailto:palermo@pobox.com" target="_blank">palermo@pobox.com</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr">Stan,<br><br>For now I'm using a static page outside Keycloak. As for the script I will have a look at the admin client API.<br>Also would be an interested option to force the user to accept the terms before creating an account, just using a regular checkbox on the registration form.<br>Right now I`m doing client side validation using JQuery. Any suggestion for the server side validation?<br><br>Thanks,<br>Bruno<br><br><div><hr>Date: Sun, 22 May 2016 20:25:31 -0400<br>From: <a href="mailto:ssilvert@redhat.com" target="_blank">ssilvert@redhat.com</a><br>To: <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>Subject: Re: [keycloak-user] Terms and Conditions<div><div class="h5"><br><br>
<div>On 5/20/2016 7:24 PM, Bruno Palermo
wrote:<br>
</div>
<blockquote>
<div dir="ltr">Hi,<br>
<br>
It's possible to link directly to the terms and conditions page?
What's the URL?<br>
</div>
</blockquote>
You could create your own static page, but it doesn't sound like
that's what you want. But linking to the middle of a login flow
doesn't make much sense either.<br>
<blockquote>
<div dir="ltr">In case there's an update to terms, is possible to
add the required action to accept the terms again to all users?<br>
</div>
</blockquote>
This is probably what you want. It should be fairly easy to write a
script for adding the required action to all users. Are you familiar
with the admin client?<br>
<br>
It might be a nice addition to the admin UI if we allow you to
assign a required action to all users. Something to think about for
a 2.x feature.<br>
<blockquote>
<div dir="ltr"><br>
Thanks,<br>
Bruno<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
keycloak-user mailing list
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br>
<br>_______________________________________________
keycloak-user mailing list
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></div></div></div>                                            </div></div>
<br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div></div>                                            </div></body>
</html>