# SSO-integratieprobleem - Hulp nodig bij automatische authenticatie

**URL:** https://meta.discourse.org/t/sso-integration-issue-need-help-with-automatic-authentication/357947
**Category:** WordPress
**Created:** [19 maart 2025 om 12:55 UTC](https://meta.discourse.org/t/sso-integration-issue-need-help-with-automatic-authentication/357947 "2025-03-19T12:55:34Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [19 maart 2025 om 13:05 UTC](https://meta.discourse.org/t/sso-integration-issue-need-help-with-automatic-authentication/357947/3 "2025-03-19T13:05:21Z")

</div>

Hello Hailo,

What you’re describing is how [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) is intended to work.

On the Discourse side of things there is an `auth immediately` site setting that, as the setting name implies, immediately initiates the authentication flow. However, as the setting description notes:

> Automatically redirect to the external login system without user interaction. This only takes effect when login\_required is true, and there is only one external authentication method

Assuming your site is not `login required` what you can do is link directly to the [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) authentication endpoint from Wordpress, rather than the base Discourse domain. See further:

> [@Automatic account creation and login when login\_required is false](https://meta.discourse.org/t/automatic-account-creation-and-login-when-login-required-is-false/352796/2):
>
> You can achieve that by linking to https://community.example.com/session/sso for authenticated users in your application. That will trigger the login / account creation flow. You could also add the parameter ?return\_path to link to a specific page. For unauthenticated users you should still link to https://community.example.com.

---

_[View the full topic](https://meta.discourse.org/t/sso-integration-issue-need-help-with-automatic-authentication/357947)._
