# Voeg links toe aan Discourse waarmee gebruikers via SSO kunnen authenticeren of rechtstreeks toegang krijgen tot privé-groepen als ze al zijn ingelogd

**URL:** https://meta.discourse.org/t/add-links-to-discourse-that-allow-users-to-authenticate-via-sso-or-access-private-groups-directly-if-they-are-logged-in-already/252240
**Category:** WordPress
**Created:** [18 januari 2023 om 22:19 UTC](https://meta.discourse.org/t/add-links-to-discourse-that-allow-users-to-authenticate-via-sso-or-access-private-groups-directly-if-they-are-logged-in-already/252240 "2023-01-18T22:19:45Z")
**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 januari 2023 om 12:44 UTC](https://meta.discourse.org/t/add-links-to-discourse-that-allow-users-to-authenticate-via-sso-or-access-private-groups-directly-if-they-are-logged-in-already/252240/3 "2023-01-19T12:44:54Z")

</div>

Hey @rodrigo.braga 🙂

I too am a little confused. If you could confirm the following:

### Setup

Wordpress is set up as the [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) provider for Discourse following the instructions here

> [@Configure single sign-on (SSO) with WP Discourse and DiscourseConnect](https://meta.discourse.org/t/configure-single-sign-on-sso-with-wp-discourse-and-discourseconnect/223494):
>
> The [WP Discourse](https://github.com/discourse/wp-discourse) plugin lets you set up [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) in Wordpress so your users can use their Wordpress account to log into Discourse, or their Discourse account to log into Wordpress. Before you can set up [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) you first have to install the [WP Discourse](https://github.com/discourse/wp-discourse) plugin on Wordpress and Connect it to your Discourse. If you’re ready to get started, start by watching this short video, or follow the instructions below. Next Step Once you’ve set up [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true), you may want to check o…

### Scenario 1

1. A user is on your Wordpress site and is not logged in to Wordpress
2. The user clicks a link on Wordpress in the format `https://discourse.example.com/session/sso?return_path=/g/private_group`
3. The user is prompted to login to Wordpress
4. The user logs in to Wordpress
5. The user is redirected to `https://discourse.example.com/g/private_group`
6. The user sees `private_group` because they are now logged into Discourse via [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) and they are a member of `private_group`.

Is that currently the case?

### Scenario 2

1. A user is on your Wordpress site and is logged in to Wordpress
2. The user clicks a link on Wordpress in the format `https://discourse.example.com/session/sso?return_path=/g/private_group`
3. The user is prompted to login to Wordpress

Is that currently the case?

---

_[View the full topic](https://meta.discourse.org/t/add-links-to-discourse-that-allow-users-to-authenticate-via-sso-or-access-private-groups-directly-if-they-are-logged-in-already/252240)._
