<div dir="ltr">Should I set another cookie aswell? I tried it, I created the remember me cookie correctly when logging in through twitter and it didn&#39;t work. Here are the steps I took:<div><br></div><div>1. Opened browser without any cookies and history. Tried accessing: <a href="http://localhost:9080/customer-portal/customers/view.jsp">http://localhost:9080/customer-portal/customers/view.jsp</a></div>
<div>2. Server asked for authentication, I proceeded to login using Twitter and selecting the remember me checkbox. (KEYCLOAK_REMEMBER_ME cookie was created)</div><div>3. Closed the browser and reopened it. Accessed twitter, and after logging in I opened the same url (<a href="http://localhost:9080/customer-portal/customers/view.jsp">http://localhost:9080/customer-portal/customers/view.jsp</a>)</div>
<div><br></div><div>System asked me to login again, even though the cookie was there. Did I miss something?<br></div><div><br></div><div>I see this message being printed on the console:</div><div><br></div><div><div>13:33:08,603 INFO  [org.keycloak.services.managers.AuthenticationManager] (http--127.0.0.1-9080-14) authenticateIdentityCookie</div>
<div>13:33:08,603 INFO  [org.keycloak.services.managers.AuthenticationManager] (http--127.0.0.1-9080-14) authenticateCookie could not find cookie: KEYCLOAK_IDENTITY</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Aug 12, 2014 at 1:08 PM, Rodrigo Sasaki <span dir="ltr">&lt;<a href="mailto:rodrigopsasaki@gmail.com" target="_blank">rodrigopsasaki@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">It&#39;s no problem, if I can come up with a suitable solution, I&#39;ll submit a PR and you can add it whenever it fits the schedule, I&#39;m just pursuing this because it&#39;s one of the few things that we still need before we migrate everything.</div>

<div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Tue, Aug 12, 2014 at 12:27 PM, 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">The login form is:<br>
<br>
  ./forms/common-themes/src/main/resources/theme/login/base/login.ftl<br>
<br>
It&#39;s FreeMarker templates. FIY as we&#39;re close to releasing 1.0.final we can&#39;t add this to master until after.<br>
<div><br>
----- Original Message -----<br>
&gt; From: &quot;Rodrigo Sasaki&quot; &lt;<a href="mailto:rodrigopsasaki@gmail.com" target="_blank">rodrigopsasaki@gmail.com</a>&gt;<br>
&gt; To: &quot;Stian Thorgersen&quot; &lt;<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>&gt;<br>
&gt; Cc: <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
</div><div><div>&gt; Sent: Tuesday, 12 August, 2014 2:49:19 PM<br>
&gt; Subject: Re: [keycloak-user] &quot;Remember Me&quot; feature on Social Login<br>
&gt;<br>
&gt; So you&#39;re saying I have to change the HTML pages to make it submit a form?<br>
&gt;<br>
&gt; I really don&#39;t understand how the interface works on Keycloak, could you<br>
&gt; tell me the name of the file that handles the login page, if I understood<br>
&gt; correctly. And I&#39;ll study it on from there.<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Aug 12, 2014 at 10:23 AM, Stian Thorgersen &lt;<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Basically what&#39;s needed is:<br>
&gt; &gt;<br>
&gt; &gt;   * Add a remember me option for social - this is non-trivial as atm<br>
&gt; &gt; social logins are links so needs to be changed to submitting a form<br>
&gt; &gt;   * Set the login cookie in SocialResource.redirectToProviderAuth if this<br>
&gt; &gt; remember me check-box is set<br>
&gt; &gt;<br>
&gt; &gt; Reading the cookie is already handled, as it should set the same cookie as<br>
&gt; &gt; the &quot;regular&quot; login does.<br>
&gt; &gt;<br>
&gt; &gt; If you&#39;d like to do this that would be great :)<br>
&gt; &gt;<br>
&gt; &gt; ----- Original Message -----<br>
&gt; &gt; &gt; From: &quot;Rodrigo Sasaki&quot; &lt;<a href="mailto:rodrigopsasaki@gmail.com" target="_blank">rodrigopsasaki@gmail.com</a>&gt;<br>
&gt; &gt; &gt; To: &quot;Stian Thorgersen&quot; &lt;<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>&gt;<br>
&gt; &gt; &gt; Cc: <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
&gt; &gt; &gt; Sent: Tuesday, 12 August, 2014 1:47:28 PM<br>
&gt; &gt; &gt; Subject: Re: [keycloak-user] &quot;Remember Me&quot; feature on Social Login<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I was wondering, could you give me some pointers so I could try and<br>
&gt; &gt; &gt; implement this myself? I was looking at the mechanics on the already<br>
&gt; &gt; &gt; implemented feature, for username + password login, and I saw that I have<br>
&gt; &gt; &gt; to set a cookie, which I&#39;d have todo on<br>
&gt; &gt; &gt; *SocialResource.redirectToProviderAuth*<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; But I couldn&#39;t figure out how it uses the remember me cookie to evaluate<br>
&gt; &gt; &gt; and authenticate the user on the next access. I&#39;m looking into it now,<br>
&gt; &gt; but<br>
&gt; &gt; &gt; anything you can help me with would be great, if it interests you.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Mon, Aug 11, 2014 at 5:24 AM, Stian Thorgersen &lt;<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>&gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; It won&#39;t be until after 1.0.final has been released, but we&#39;ll aim to<br>
&gt; &gt; add<br>
&gt; &gt; &gt; &gt; it for 1.1.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; JIRA: <a href="https://issues.jboss.org/browse/KEYCLOAK-332" target="_blank">https://issues.jboss.org/browse/KEYCLOAK-332</a><br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; ----- Original Message -----<br>
&gt; &gt; &gt; &gt; &gt; From: &quot;Rodrigo Sasaki&quot; &lt;<a href="mailto:rodrigopsasaki@gmail.com" target="_blank">rodrigopsasaki@gmail.com</a>&gt;<br>
&gt; &gt; &gt; &gt; &gt; To: &quot;Stian Thorgersen&quot; &lt;<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>&gt;<br>
&gt; &gt; &gt; &gt; &gt; Cc: <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
&gt; &gt; &gt; &gt; &gt; Sent: Tuesday, 5 August, 2014 12:38:33 PM<br>
&gt; &gt; &gt; &gt; &gt; Subject: Re: [keycloak-user] &quot;Remember Me&quot; feature on Social Login<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Hi, just wondering, is there any prediction on when this feature<br>
&gt; &gt; will be<br>
&gt; &gt; &gt; &gt; &gt; implemented?<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; On Tue, Jul 29, 2014 at 8:55 AM, Stian Thorgersen &lt;<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>&gt;<br>
&gt; &gt; &gt; &gt; wrote:<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; It&#39;s planned just not implemented yet.<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; One of the reasons was that we couldn&#39;t figure out an elegant<br>
&gt; &gt; placement<br>
&gt; &gt; &gt; &gt; &gt; &gt; for the remember-me checkbox.<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; ----- Original Message -----<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; From: &quot;Rodrigo Sasaki&quot; &lt;<a href="mailto:rodrigopsasaki@gmail.com" target="_blank">rodrigopsasaki@gmail.com</a>&gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; To: <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Sent: Tuesday, 29 July, 2014 12:15:15 PM<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Subject: [keycloak-user] &quot;Remember Me&quot; feature on Social Login<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; I know this doesn&#39;t exist now, but I was wondering if it is<br>
&gt; &gt; something<br>
&gt; &gt; &gt; &gt; &gt; &gt; that is<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; planned to be implemented, or if there&#39;s a particular reason why<br>
&gt; &gt; it<br>
&gt; &gt; &gt; &gt; &gt; &gt; isn&#39;t.<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Thanks!<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; --<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Rodrigo Sasaki<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; keycloak-user mailing list<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; --<br>
&gt; &gt; &gt; &gt; &gt; Rodrigo Sasaki<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; --<br>
&gt; &gt; &gt; Rodrigo Sasaki<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Rodrigo Sasaki<br>
&gt;<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr"><font face="Times New Roman">Rodrigo Sasaki</font><div></div></div>
</font></span></div>
</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>