# Login automatic without clicking button "login"

**URL:** https://meta.discourse.org/t/login-automatic-without-clicking-button-login/204368
**Category:** SSO
**Created:** [September 24, 2021, 10:22am UTC](https://meta.discourse.org/t/login-automatic-without-clicking-button-login/204368 "2021-09-24T10:22:13Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Mohamed\_Kbiri\_Alaoui](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mohamed_kbiri_alaoui/32/226130_2.png) [@Mohamed\_Kbiri\_Alaoui](https://meta.discourse.org/u/Mohamed_Kbiri_Alaoui)
#### Post date: [September 24, 2021, 10:22am UTC](https://meta.discourse.org/t/login-automatic-without-clicking-button-login/204368/1 "2021-09-24T10:22:13Z")

</div>

hi , i follow this [OAuth2 Basic Plugin](https://meta.discourse.org/t/how-to-use-auth0-with-the-oauth2-basic-plugin/64633) and i have my react website have login with auth0 I want to do one thing if i login in my website and i go in discourse i want login automatic without clicking a button “login” and without set discourse “login required” how can i do that?

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [September 24, 2021, 10:40am UTC](https://meta.discourse.org/t/login-automatic-without-clicking-button-login/204368/2 "2021-09-24T10:40:43Z")

</div>

To start the login process immediately, you could link users directly to the `/login` URL. If OAuth2 is the only enabled login method, users will be redirected straight to the identity provider.

---

<div class="post-metadata">

### Author: ![Mohamed\_Kbiri\_Alaoui](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mohamed_kbiri_alaoui/32/226130_2.png) [@Mohamed\_Kbiri\_Alaoui](https://meta.discourse.org/u/Mohamed_Kbiri_Alaoui)
#### Post date: [September 24, 2021, 10:53am UTC](https://meta.discourse.org/t/login-automatic-without-clicking-button-login/204368/3 "2021-09-24T10:53:50Z")

</div>

thanks very much for your reply.  
but i have a condition if the user has login in my app and he visit my discourse forum from google or may be from link [forum-dsicourse.com](http://forum-dsicourse.com) . Is there a way for login automatic ?

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [September 24, 2021, 11:08am UTC](https://meta.discourse.org/t/login-automatic-without-clicking-button-login/204368/4 "2021-09-24T11:08:29Z")

</div>

Unfortunately not, unless you enable ‘login required’.

---

<div class="post-metadata">

### Author: ![kevin-mlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kevin-mlz/32/301780_2.png) [@kevin-mlz](https://meta.discourse.org/u/kevin-mlz)
#### Post date: [April 7, 2023, 6:55pm UTC](https://meta.discourse.org/t/login-automatic-without-clicking-button-login/204368/5 "2023-04-07T18:55:47Z")

</div>

@david I just created my discourse community but I don’t understand why people without an account can’t access it. The link goes straight to login.

I don’t see the option in the settings to make it open and public and require an account only if you want to like and comment on topics. Can you help me?
