The user kev-is-coding-for-adn reports a bug where, with Discourse Connect enabled and local logins disabled, accessing a topic directly (e.g., https://community.adn-soft.com/t/test-categories-sujet-et-etiquette/69) redirects to a /login page showing “No login methods,” instead of using Discourse Connect or redirecting to /login-required. zogstrip investigates and identifies that the issue stems from the “auth immediately” site setting being disabled, which prevents automatic redirection to the SSO endpoint. Enabling this setting resolves the login issue but removes the home page, creating a conflict. kev-is-coding-for-adn confirms this behavior and reverts the change to maintain the home page, highlighting the need for a better solution. The discussion suggests that the “auth immediately” setting may be deprecated in future updates.
From my point of view, because I have only 1 login methods configured (Discourse Connect), it should directly use it, or at least show the login page like the home page.
I think that instead of redirecting to “/login”, it should redirect to “/login-required”.
As soon as I enter the topic page as “anon” I’m being redirected to the /sso endpoint which then redirects to the local “discourse connect” I have setup & configured (on localhost:5000).
Looking at the code, and especially the redirect_to_login callback, I can see we’ll only redirect to the /sso endpoint when both “discourse connect” is enabled as well as the “auth immediately” site setting
By default, that site setting is enabled, but when I disable it, then