<div dir="ltr">I don&#39;t like the query param approach as it requires somehow adding the query param to specify what authenticators to skip. This would have to be added to applications themselves and with Keycloak the whole idea is that applications shouldn&#39;t have to worry about authentication semantics.<div><br></div><div>We need a generic mechanism to be able to skip any authenticators that automatically log in a user. Currently this is only Kerberos, but in the future we could add more, including an option to automatically route to external IdPs.</div><div><br></div><div>Ignoring implementation semantics for now, but taking Kerberos as the example authenticator I can see some options (in the example below replace &#39;Kerberos&#39; with any other authentication method that can automatically login a user):</div><div><br></div><div>* If a user that was logged in using Kerberos logs out the user should not just be automatically logged-in again for the current browser session. Instead the user should be displayed with a regular username/password field, but also with an option to login with Kerberos</div><div>* A variant on the above where if a user has logged-out from Kerberos the user would be displayed with a &quot;Is this you?&quot; when login, if the user selects yes the Kerberos authenticator would continue, if not the regular username/password form would be displayed</div><div>* Implement account switcher - where a user can login to multiple accounts at a time and select which account to use<br></div><div><br></div><div>Other ideas? Points for ideas that requires no hacks in applications ;)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 30 September 2015 at 15:39, Michael Gerber <span dir="ltr">&lt;<a href="mailto:gerbermichi@me.com" target="_blank">gerbermichi@me.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><div>Hi all,</div><div><br></div><div>I would like to use kerberos as my standard authentication mechanism, but I also want to have the possibility to log in as an admin over the login form. </div><div>Therefore, I want to skip the kerberos authenticator after a successful logout.</div><div><a href="https://issues.jboss.org/browse/KEYCLOAK-1727" target="_blank">https://issues.jboss.org/browse/KEYCLOAK-1727</a></div><div><br></div><div>How would you solve this problem?</div><div><br></div><div>I&#39;ve got two solutions, one sets a logout session cookie after a logout and then skips the kerberos authentication and another which allows users to skip any kind of alternative authenticators with a query parameter.</div><div><br></div><div>Logout Session Cookie</div><div><a href="https://github.com/gerbermichi/keycloak/commit/f804d9e13573cb666cf6d2eff1407978c9e5e854" target="_blank">https://github.com/gerbermichi/keycloak/commit/f804d9e13573cb666cf6d2eff1407978c9e5e854</a></div><div><br></div><div>Query Param</div><div><a href="https://github.com/gerbermichi/keycloak/commit/abd3bd87f5aa4c28914da677653268c0f44fe6cc" target="_blank">https://github.com/gerbermichi/keycloak/commit/abd3bd87f5aa4c28914da677653268c0f44fe6cc</a></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Michael</div></font></span></div><br>_______________________________________________<br>
keycloak-dev mailing list<br>
<a href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a><br></blockquote></div><br></div>