# Auto trigger login for a particular method or hide default login

**URL:** <https://community.zammad.org/t/auto-trigger-login-for-a-particular-method-or-hide-default-login/6310>\
**Category:** Feature requests\
**Created:** [February 28, 2021, 5:31am UTC](https://community.zammad.org/t/auto-trigger-login-for-a-particular-method-or-hide-default-login/6310 "2021-02-28T05:31:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![meezaan](https://community.zammad.org/user_avatar/community.zammad.org/meezaan/32/3917_2.png) [@meezaan](https://community.zammad.org/u/meezaan)\
**Post date:** [February 28, 2021, 5:31am UTC](https://community.zammad.org/t/auto-trigger-login-for-a-particular-method-or-hide-default-login/6310/1 "2021-02-28T05:31:15Z")

</div>

Hi there,

I have seen [Rename 3rd Party Integration Logins](https://community.zammad.org/t/rename-3rd-party-integration-logins/5227) where not being able to rename the login providers can lead to great confusion for the customer(s). I understand if there’s no safe way to change those labels, but it would be good if we could possibly do one of the following:

1. Either pass a URL that triggers a button click automatically for a particular login provider and starts the login flow, so the user does not see the login page, perhaps something like: [https://my.zammad.example/#login?provider=saml](https://my.zammad.example/#login?provider=saml).

2. The ability to hide the default login form - as having that along with SAML or any other login provider can cause confusion, particularly when we are using a single source for all users (I imagine this is quite a common problem).

Grafana solves this well be allowing a flag in the config to disable the default login form or allowing a method to trigger automatically. See the Disable login form and Automatic OAUTH login flags [Grafana Authentication | Grafana Labs](https://grafana.com/docs/grafana/latest/auth/grafana/).

I have also seen [How to automatically redirect user to OAuth2 login page?](https://community.zammad.org/t/how-to-automatically-redirect-user-to-oauth2-login-page/3175), but I’m still no sure how if it’s possible to automatically take the user to the login form or hide the default one.

Thank you.

Meezaan-ud-Din

---

<div class="post-metadata">

**Author:** ![tomsparrow](https://community.zammad.org/user_avatar/community.zammad.org/tomsparrow/32/2159_2.png) [@tomsparrow](https://community.zammad.org/u/tomsparrow)\
**Post date:** [March 3, 2021, 8:33am UTC](https://community.zammad.org/t/auto-trigger-login-for-a-particular-method-or-hide-default-login/6310/2 "2021-03-03T08:33:11Z")

</div>

Not on Zammad, but on another system we use I have hidden the login form to push people towards the 3rd party login.  
On zammad’s login page there is a form `id='login'` which contains just the form - if you add/modify the CSS so `#login` has` display:none;` then it should disappear.

You could add a custom CSS to /assets/custom and use nginx to inject it onto the login page - a trick I picked up from [this thread](https://community.zammad.org/t/css-modification-for-mobile/3941) which has the details.

---

<div class="post-metadata">

**Author:** ![meezaan](https://community.zammad.org/user_avatar/community.zammad.org/meezaan/32/3917_2.png) [@meezaan](https://community.zammad.org/u/meezaan)\
**Post date:** [March 3, 2021, 11:17am UTC](https://community.zammad.org/t/auto-trigger-login-for-a-particular-method-or-hide-default-login/6310/3 "2021-03-03T11:17:11Z")

</div>

Than you @tomsparrow - we are running a helm chart so I’m not entirely comfortable with changing the code and building my own container to deploy as it will make updates much harder. It’s a possibility if things come down to it, but I could wait for a more graceful solution (and that might do the same thing, but just via config instead of via a code change).

---

<div class="post-metadata">

**Author:** ![astrugatch](https://community.zammad.org/user_avatar/community.zammad.org/astrugatch/32/3602_2.png) [@astrugatch](https://community.zammad.org/u/astrugatch)\
**Post date:** [March 27, 2021, 12:39am UTC](https://community.zammad.org/t/auto-trigger-login-for-a-particular-method-or-hide-default-login/6310/4 "2021-03-27T00:39:27Z")

</div>

An option to hide the local login option when third party login options are enabled (google, saml etc) would be great.

---

<div class="post-metadata">

**Author:** ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)\
**Post date:** [April 20, 2022, 9:32pm UTC](https://community.zammad.org/t/auto-trigger-login-for-a-particular-method-or-hide-default-login/6310/5 "2022-04-20T21:32:04Z")

</div>

This topic was automatically closed after 416 days. New replies are no longer allowed.
