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