<div dir="ltr">Sorry to keep insisting on this, but since it&#39;s being a huge showstopper so far, I just have to ask.<div><br></div><div>If I don&#39;t mind trading off SSO and all the other benefits that the Keycloak login page provides me, would there be a way for me to do what I want?</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 18, 2014 at 5:44 AM, Stian Thorgersen <span dir="ltr">&lt;<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We could add support for login_hint query param so you can have the username/email field on the login form pre-filled for the user, so once a user has to authenticate you redirect to login on KC and all they would have to do is enter their password.<br>

<br>
If you bypass the login forms you&#39;d loose SSO, multi-factor support, required actions, recover password, etc, etc, etc..<br>
<br>
As Bill mentioned we provide very flexible login forms that can be templated using either just css or even FreeMarker templates if you need a lot of customization, so you should be able to make the login form integrate well with your website.<br>

<div><div class="h5"><br>
----- Original Message -----<br>
&gt; From: &quot;Rodrigo Sasaki&quot; &lt;<a href="mailto:rodrigopsasaki@gmail.com">rodrigopsasaki@gmail.com</a>&gt;<br>
&gt; To: &quot;Bill Burke&quot; &lt;<a href="mailto:bburke@redhat.com">bburke@redhat.com</a>&gt;<br>
&gt; Cc: <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; Sent: Thursday, 17 July, 2014 6:52:08 PM<br>
&gt; Subject: Re: [keycloak-user] Authenticate user without using login page<br>
&gt;<br>
&gt; You think there could be a way to do this within keycloak itself?<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Jul 16, 2014 at 4:41 PM, Rodrigo Sasaki &lt; <a href="mailto:rodrigopsasaki@gmail.com">rodrigopsasaki@gmail.com</a> &gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I&#39;ll give you an example:<br>
&gt;<br>
&gt; We have a situation in our website where we only ask for the user&#39;s e-mail,<br>
&gt; and he can go on with the flow.<br>
&gt;<br>
&gt; On a determined step of the flow, if we identify that this is an e-mail that<br>
&gt; we already have in our user database, we ask him for his password,<br>
&gt; authenticate him, and let him go on, if this e-mail is new, we redirect him<br>
&gt; to a page where he can register himself, and after that continue on.<br>
&gt;<br>
&gt; On this specific case and others, we wouldn&#39;t like to have to redirect him to<br>
&gt; keycloak, because that would interrupt the flow that we designed.<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Jul 16, 2014 at 4:39 PM, Bill Burke &lt; <a href="mailto:bburke@redhat.com">bburke@redhat.com</a> &gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; <a href="http://docs.jboss.org/" target="_blank">http://docs.jboss.org/</a> keycloak/docs/1.0-beta-3/<br>
&gt; userguide/html/direct-access- grants.html<br>
&gt;<br>
&gt; If you have to do it this way, please let us know why. Maybe we can solve the<br>
&gt; issue within keycloak itself.<br>
&gt;<br>
&gt;<br>
&gt; On 7/16/2014 3:35 PM, Rodrigo Sasaki wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Just for the sake of conversation, if I did want to handle my own login<br>
&gt; page, would there be a way for me to do it?<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jul 15, 2014 at 2:35 PM, Rodrigo Sasaki<br>
</div></div><div><div class="h5">&gt; &lt; <a href="mailto:rodrigopsasaki@gmail.com">rodrigopsasaki@gmail.com</a> &lt;mailto: rodrigopsasaki@gmail. com &gt;&gt; wrote:<br>
&gt;<br>
&gt; I don&#39;t want to miss out on all of that, which is why we&#39;re mostly<br>
&gt; migrating everything to use keycloak that way.<br>
&gt;<br>
&gt; It&#39;s just that we have cases that are so specific, that it would be<br>
&gt; better to authenticate the user in a different manner, create the<br>
&gt; user session and everything, without redirecting.<br>
&gt;<br>
&gt; I&#39;ll have a look at that code. Thanks!<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jul 15, 2014 at 2:19 PM, Bill Burke &lt; <a href="mailto:bburke@redhat.com">bburke@redhat.com</a><br>
&gt; &lt;mailto: <a href="mailto:bburke@redhat.com">bburke@redhat.com</a> &gt;&gt; wrote:<br>
&gt;<br>
&gt; If you want to handle your own login pages, IMO, you are missing<br>
&gt; out on<br>
&gt; a lot of Keycloak features. Specifically:<br>
&gt;<br>
&gt; * SSO<br>
&gt; * forgot password<br>
&gt; * admin forced credential reset/setup<br>
&gt;<br>
&gt;<br>
&gt; Login pages can be styled however you like to look like your<br>
&gt; application.<br>
&gt;<br>
&gt; There is a REST api for obtaining an access token. Here is an<br>
&gt; example:<br>
&gt;<br>
&gt; <a href="https://github.com/keycloak/" target="_blank">https://github.com/keycloak/</a> keycloak/blob/master/examples/<br>
&gt; demo-template/admin-access- app/src/main/java/org/<br>
&gt; keycloak/example/AdminClient. java<br>
&gt;<br>
&gt; On 7/15/2014 12:36 PM, Rodrigo Sasaki wrote:<br>
&gt; &gt; Is there a way to authenticate the user without having to<br>
&gt; input username<br>
&gt; &gt; and password on the login page?<br>
&gt; &gt;<br>
&gt; &gt; For example:<br>
&gt; &gt;<br>
&gt; &gt; Say there&#39;s a situation in my application where I request the<br>
&gt; user for<br>
&gt; &gt; his username and password, and I wouldn&#39;t like to redirect<br>
&gt; that to the<br>
&gt; &gt; keycloak login page to authenticate him, would there be a way<br>
&gt; for me to<br>
&gt; &gt; do that?<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Rodrigo Sasaki<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ______________________________ _________________<br>
&gt; &gt; keycloak-user mailing list<br>
&gt; &gt; <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; &lt;mailto: keycloak-user@lists. <a href="http://jboss.org" target="_blank">jboss.org</a> &gt;<br>
&gt;<br>
&gt; &gt; <a href="https://lists.jboss.org/" target="_blank">https://lists.jboss.org/</a> mailman/listinfo/keycloak-user<br>
&gt; &gt;<br>
&gt;<br>
&gt; --<br>
&gt; Bill Burke<br>
&gt; JBoss, a division of Red Hat<br>
&gt; <a href="http://bill.burkecentral.com" target="_blank">http://bill.burkecentral.com</a><br>
&gt; ______________________________ _________________<br>
&gt; keycloak-user mailing list<br>
&gt; <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a> &lt;mailto: keycloak-user@lists. <a href="http://jboss.org" target="_blank">jboss.org</a> &gt;<br>
&gt;<br>
&gt; <a href="https://lists.jboss.org/" target="_blank">https://lists.jboss.org/</a> mailman/listinfo/keycloak-user<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div><div class="">&gt; --<br>
&gt; Rodrigo Sasaki<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Rodrigo Sasaki<br>
&gt;<br>
&gt; --<br>
&gt; Bill Burke<br>
&gt; JBoss, a division of Red Hat<br>
&gt; <a href="http://bill.burkecentral.com" target="_blank">http://bill.burkecentral.com</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Rodrigo Sasaki<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Rodrigo Sasaki<br>
&gt;<br>
</div><div class="">&gt; _______________________________________________<br>
&gt; keycloak-user mailing list<br>
&gt; <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
</div>&gt; <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font face="Times New Roman">Rodrigo Sasaki</font><div></div></div>
</div>