<div dir="ltr">You can use the Resource Owner Password Credentials (we call it direct grant) flow from OAuth2 with Keycloak. That let&#39;s you exchange a username/password for a token.<div><br></div><div>We highly recommend you stick with the redirect based login though. It&#39;s more secure and you get a lot of extra features that way (required actions, totp, reset password, SSO, etc, etc)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 4 January 2016 at 20:11, Helder dos S. Alves <span dir="ltr">&lt;<a href="mailto:helder.jaspion@gmail.com" target="_blank">helder.jaspion@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"><div>Hi everybody.</div><div><br></div><div>I&#39;m new to Keycloak and I wonder if is possible to login via ajax without redirecting to a login page.</div><div>Maybe anyone has already asked it (and others answered it, I hope), but I could not find a way to search on older topics.<br></div><div><br></div><div>Thanks in advance.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div><div><div dir="ltr"><div><div dir="ltr">Helder Alves<br></div></div></div></div></div>
</font></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><br></div>