# Select login method as default

**URL:** <https://forum.keycloak.org/t/select-login-method-as-default/25994>\
**Category:** Getting advice\
**Created:** [May 13, 2024, 12:40am UTC](https://forum.keycloak.org/t/select-login-method-as-default/25994 "2024-05-13T00:40:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ciphermenial](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/ciphermenial/32/4423_2.png) [@ciphermenial](https://forum.keycloak.org/u/ciphermenial)\
**Post date:** [May 13, 2024, 12:40am UTC](https://forum.keycloak.org/t/select-login-method-as-default/25994/1 "2024-05-13T00:40:35Z")

</div>

I was trying to figure out how to go straight to the “Select login method” page directly, rather than clicking on “Try another way”.

---

<div class="post-metadata">

**Author:** ![embesozzi](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/embesozzi/32/12390_2.png) [@embesozzi](https://forum.keycloak.org/u/embesozzi)\
**Post date:** [May 13, 2024, 2:28pm UTC](https://forum.keycloak.org/t/select-login-method-as-default/25994/2 "2024-05-13T14:28:05Z")

</div>

So far, I believe there is no way of doing that.

---

<div class="post-metadata">

**Author:** ![dasniko](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dasniko/32/2969_2.png) [@dasniko](https://forum.keycloak.org/u/dasniko)\
**Post date:** [May 13, 2024, 4:39pm UTC](https://forum.keycloak.org/t/select-login-method-as-default/25994/3 "2024-05-13T16:39:18Z")

</div>

The only way I can imagine is, to extend the templates with some JavaScript and to look for the „try another way“ link and if available, „click“ the link by script…. yes, hacky 🤠

---

<div class="post-metadata">

**Author:** ![embesozzi](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/embesozzi/32/12390_2.png) [@embesozzi](https://forum.keycloak.org/u/embesozzi)\
**Post date:** [May 13, 2024, 5:21pm UTC](https://forum.keycloak.org/t/select-login-method-as-default/25994/4 "2024-05-13T17:21:43Z")

</div>

I thought about that, but I didn’t have the courage to say it… 😅 Then you can store some sort of flag in a cookie to avoid clicking next time. Just following dasniko’s idea, not mine! 😄

---

<div class="post-metadata">

**Author:** ![aaltwegg-inventage](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/aaltwegg-inventage/32/10502_2.png) [@aaltwegg-inventage](https://forum.keycloak.org/u/aaltwegg-inventage)\
**Post date:** [May 23, 2024, 5:23pm UTC](https://forum.keycloak.org/t/select-login-method-as-default/25994/5 "2024-05-23T17:23:27Z")

</div>

I see two possible solutions:

1. 

Incorporate the list from the select-login-method page into a copy of login.ftl and overwrite the default login.ftl (you can do this with a login-theme  
not the solution you really like, but at least you have the list on the first page

1. if you really like to have the selelect-login-method as first page  
Create a SPI-Extension (AuthenticatorForm) where you just show the selelect-login-method page.  
Put that after Cookies in your browser-flow as required  
 → only you need to do is to filter out your Authenticator from the list.

Both solutions I have already used and both are working fine

keycloak[ch]

---

<div class="post-metadata">

**Author:** ![Nikhiljbhandari](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/nikhiljbhandari/32/10642_2.png) [@Nikhiljbhandari](https://forum.keycloak.org/u/Nikhiljbhandari)\
**Post date:** [December 4, 2024, 10:06pm UTC](https://forum.keycloak.org/t/select-login-method-as-default/25994/6 "2024-12-04T22:06:42Z")

</div>

can you please share the custom implementation that you did for option two
