hi , i follow this OAuth2 Basic Plugin 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?
AI-generated summary
The discussion revolves around achieving automatic login to a Discourse forum using OAuth2 without requiring users to click the login button, especially when users are already authenticated on a connected React app. Mohamed_Kbiri_Alaoui asks how to enable seamless login when accessing the forum via external links, such as from Google or direct URLs. david explains that linking directly to the /login URL can initiate the OAuth2 login flow automatically if it’s the only enabled method, but notes that automatic login without enabling ‘login required’ is not possible. kevin-mlz adds a related concern about public access, questioning why unregistered users are blocked from viewing content and seeking guidance on making the forum open by default while still requiring accounts for interactions.
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.
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 . Is there a way for login automatic ?
Unfortunately not, unless you enable ‘login required’.
@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?