# Login Sigin only through openID

**URL:** https://meta.discourse.org/t/login-sigin-only-through-openid/312080
**Category:** SSO
**Tags:** openid-connect
**Created:** [June 14, 2024, 11:12am UTC](https://meta.discourse.org/t/login-sigin-only-through-openid/312080 "2024-06-14T11:12:34Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Jaskaran](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@Jaskaran](https://meta.discourse.org/u/Jaskaran)
#### Post date: [June 14, 2024, 11:12am UTC](https://meta.discourse.org/t/login-sigin-only-through-openid/312080/1 "2024-06-14T11:12:34Z")

</div>

I hosted community on ec2 instance I want to remove this sigin login page so that when i click on one button it directly open the site i configure with openId connect please suggest how to do this

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/a/2/ba2558d26a2fe55078aada29c5c4513ec47b64f7.png)

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [June 14, 2024, 11:25am UTC](https://meta.discourse.org/t/login-sigin-only-through-openid/312080/2 "2024-06-14T11:25:49Z")

</div>

Would this work?

```plaintext
.d-modal.login-modal .login-left-side, .d-modal.create-account .login-left-side {
    display: none;
}

.d-modal.login-modal .d-modal __body, .d-modal.create-account .d-modal__ body {
    padding: 3px;
    padding-right: -2px;
    display: block;
}

```

That removes the left side of the modal and leaves you with just the right

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/6/f/f6f7c1aa7d6e7ba935247f18b4aa8af6e573f904.jpeg)

---

<div class="post-metadata">

### Author: ![Jaskaran](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@Jaskaran](https://meta.discourse.org/u/Jaskaran)
#### Post date: [June 14, 2024, 11:40am UTC](https://meta.discourse.org/t/login-sigin-only-through-openid/312080/3 "2024-06-14T11:40:55Z")

</div>

Please mention that where i can do these changes I added discourse component which is custom header link

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [June 14, 2024, 11:45am UTC](https://meta.discourse.org/t/login-sigin-only-through-openid/312080/4 "2024-06-14T11:45:37Z")

</div>

Have you tried to disable the ‘enable local logins’ site setting?

---

<div class="post-metadata">

### Author: ![Jaskaran](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@Jaskaran](https://meta.discourse.org/u/Jaskaran)
#### Post date: [June 14, 2024, 4:31pm UTC](https://meta.discourse.org/t/login-sigin-only-through-openid/312080/5 "2024-06-14T16:31:08Z")

</div>

No I haven’t tried I dont know about it could you pls elaborate more

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [June 14, 2024, 4:45pm UTC](https://meta.discourse.org/t/login-sigin-only-through-openid/312080/6 "2024-06-14T16:45:42Z")

</div>

It can be found in site settings

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/c/9/4c911886f07ce66c1b8d6044f6c82c7fb95c9aea.png)

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [June 14, 2024, 4:47pm UTC](https://meta.discourse.org/t/login-sigin-only-through-openid/312080/7 "2024-06-14T16:47:20Z")

</div>

This is a part of the explanation of the Settings Explorer bot:

> [@On another topic](https://meta.discourse.org/t/312120/2):
>
> **Opening OpenID Connect Automatically** : To ensure that OpenID Connect (or any other third-party login provider) is the sole method of logging in, you can disable `enable_local_logins`. This setup means when users visit the login page, they will be automatically redirected to the OpenID Connect provider for authentication, bypassing the traditional username/password login form.
> 
> To summarize, disabling the `enable_local_logins` setting can help streamline user authentication by directly routing users to an OpenID Connect provider, enhancing security and user experience by avoiding the default Discourse login/sign-up flow.

---

<div class="post-metadata">

### Author: ![Jaskaran](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@Jaskaran](https://meta.discourse.org/u/Jaskaran)
#### Post date: [June 15, 2024, 4:53am UTC](https://meta.discourse.org/t/login-sigin-only-through-openid/312080/8 "2024-06-15T04:53:28Z")

</div>

thankyou for the reply one more this if i have admin accounts hich i add in my app.yml file now when only authentication is through openID provide how admin account works
