# Change login button action

**URL:** https://meta.discourse.org/t/change-login-button-action/81967
**Category:** Support
**Created:** [March 2, 2018, 11:05am UTC](https://meta.discourse.org/t/change-login-button-action/81967 "2018-03-02T11:05:04Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![phntxx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/phntxx/32/90816_2.png) [@phntxx](https://meta.discourse.org/u/phntxx)
#### Post date: [March 2, 2018, 11:05am UTC](https://meta.discourse.org/t/change-login-button-action/81967/1 "2018-03-02T11:05:04Z")

</div>

Hello everyone,

I am trying to change the login button to redirect me to my saml authenticator instead of showing the modal where you would normally have the username and password text fields.

Is there any way to accomplish that?

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [March 2, 2018, 3:06pm UTC](https://meta.discourse.org/t/change-login-button-action/81967/2 "2018-03-02T15:06:51Z")

</div>

Maybe I simply don’t follow how a SAML authenticator works but wouldn’t you want to set up the SSO settings for this to work? That would set up the redirects to external login providers for you.

---

<div class="post-metadata">

### Author: ![deadlock](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deadlock/32/90823_2.png) [@deadlock](https://meta.discourse.org/u/deadlock)
#### Post date: [March 4, 2018, 1:39pm UTC](https://meta.discourse.org/t/change-login-button-action/81967/3 "2018-03-04T13:39:53Z")

</div>

I’ll chip in because I’m working on the same solution. We don’t want external users in the system. We’re building an Academic community based mailman replacement and Discourse can basically do everything we want ánd more. We can offer the errr, “traditional” people a way to just continue using mail and users that want to will be able to use this very fresh and clean web interface.

The problem we’re running into is that SSO itself doesn’t meet our needs: It doesn’t implement OAuth2 in a way that we can use it out of the box, nor does it do SAML. This forum needs to be 100% behind bars because the material is under a Non-Disclosure Agreement.

We’re fronting it NetIQ Access Manager, which consists of two components, an IdP and an Access Gateway. This IdP does what every single one of them does, and the Access Gateway acts as a reverse proxy where we can define per reverse proxy what kind of protection is needed. If a resource that requires authentication (and the correct authorization) is requested, Access Manager will redirect the client to a login page. After authenticating, we’d like for our Discourse setup to “simply” authenticate the user immediately as well. This makes direct URLs very happy as well.

Now if SSO would support trivial SAML implementations then sure, we’d use that. But it doesn’t as far as I can see. We can’t use anything our own custom provider. We simply can’t use a cloud service or facebook or whatever, our users would run away and rightfully so.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [March 4, 2018, 11:05pm UTC](https://meta.discourse.org/t/change-login-button-action/81967/4 "2018-03-04T23:05:57Z")

</div>

> [@phntxx](#):
>
> instead of showing the modal where you would normally have the username and password text fields.

If you only have 1 auth method, it should automatically redirect. Disable local logins.

---

<div class="post-metadata">

### Author: ![phntxx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/phntxx/32/90816_2.png) [@phntxx](https://meta.discourse.org/u/phntxx)
#### Post date: [March 16, 2018, 8:24pm UTC](https://meta.discourse.org/t/change-login-button-action/81967/5 "2018-03-16T20:24:16Z")

</div>

that fixed it; thank you 🙂

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [July 13, 2020, 7:15pm UTC](https://meta.discourse.org/t/change-login-button-action/81967/6 "2020-07-13T19:15:44Z")

</div>



---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [July 14, 2020, 1:13am UTC](https://meta.discourse.org/t/change-login-button-action/81967/7 "2020-07-14T01:13:04Z")

</div>


