<p dir="ltr">Is there any recommended way to make sure these endpoints won't be spammed by an attacker? Looks like these endpoints need to be open to anyone.</p>
<p dir="ltr">Thanks</p>
<div class="gmail_quote">On Feb 3, 2016 11:18, "Reed Lewis" <<a href="mailto:RLewis@carbonite.com">RLewis@carbonite.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>
<div>If you use the federation provider listed here:</div>
<div><br>
</div>
<div>
<div style="font-family:Calibri">[0]: <a href="http://tech.smartling.com/migrate-to-keycloak-with-zero-downtime/" target="_blank">http://tech.smartling.com/migrate-to-keycloak-with-zero-downtime/</a></div>
<div style="font-family:Calibri">[1]: <a href="https://github.com/Smartling/keycloak-user-migration-provider" target="_blank">https://github.com/Smartling/keycloak-user-migration-provider</a></div>
</div>
<div><br>
</div>
<div>You can specify a URL that will be called when a user needs to be validated.</div>
<div><br>
</div>
<div>There are three requests that need to be implemented in your sever.</div>
<div><br>
</div>
<div>GET <baseURL>/api/users/<username>/</div>
<div>If the user exists, it should return a 200 with a json object with the return type “application/json” with the following fields:</div>
<div>username</div>
<div>email</div>
<div>emailVerified</div>
<div>
<div></div>
</div>
</div>
<div>firstName</div>
<div>lastName</div>
<div>roles [“user”]</div>
<div><br>
</div>
<div>If the user does not exist, return a 404 </div>
<div><br>
</div>
<div>HEAD <baseURL>/api/users/<username>/</div>
<div>Always return 200</div>
<div><br>
</div>
<div>POST <baseURL>/api/users/<username>/</div>
<div>The password is posted to you in a json object.</div>
<div>Return 200 if the password is OK, 401 if not. In both cases return no data.</div>
<div><br>
</div>
<div>I wrote a small python module which implements these methods which works quite well.</div>
<div><br>
</div>
<div>Reed</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:12pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="font-weight:bold">From: </span><<a href="mailto:keycloak-user-bounces@lists.jboss.org" target="_blank">keycloak-user-bounces@lists.jboss.org</a>> on behalf of Stuart Jacobs <<a href="mailto:stuart.jacobs@symbiotics.co.za" target="_blank">stuart.jacobs@symbiotics.co.za</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, February 3, 2016 at 2:40 AM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>" <<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>><br>
<span style="font-weight:bold">Subject: </span>[keycloak-user] User-Federation<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Hi Everyone,
<div><br>
</div>
<div>I have an application that runs on a postgresql database, keycloak has been configured and has created all the required tables/columns in my schema using liquibase on start up of the keycloak server.</div>
<div><br>
</div>
<div>I need to authenticate users using the projects existing user table obtaining the username and password from this table.</div>
<div><br>
</div>
<div>I have had a look at the federation provider project under the example projects but this still eludes me as to how I change the keycloak mapping to use my own tables in postgress?</div>
<div><br>
</div>
<div>Can someone please point me in the right direction or if someone has implemented such a solution please share how you have done it?</div>
<div><br>
</div>
<div>Thanks everyone. <br clear="all">
<div>
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div><br>
Regards,<br>
</div>
Stuart Jacobs</div>
<div dir="ltr"><br>
</div>
<div dir="ltr"><br>
<br>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<img src="http://symbiotics.co.za/website/image/ir.attachment/1578_e14aa73/datas" height="56" width="200"><br>
<br>
<a href="http://www.symbiotics.co.za" target="_blank">www.symbiotics.co.za</a><br>
********************************************************************************<br>
This email and any accompanying attachments may contain confidential and proprietary information. This information is private and protected by law and, accordingly, if you are not the intended recipient, you are requested to delete this entire communication
immediately and are notified that any disclosure, copying or distribution of or taking any action based on this information is prohibited.
<br>
<br>
Emails cannot be guaranteed to be secure or free of errors or viruses. The sender does not accept any liability or responsibility for any interception, corruption, destruction, loss, late arrival or incompleteness of or tampering or interference with any of
the information contained in this email or for its incorrect delivery or non-delivery for whatsoever reason or for its effect on any electronic device of the recipient.
<br>
<br>
********************************************************************************
</div>
</div>
</span>
</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>