# Automatisch sessiebeheer met OAuth SSO

**URL:** <https://meta.discourse.org/t/automatic-session-management-with-oauth-sso/167204>\
**Category:** SSO\
**Created:** [14 oktober 2020 om 15:57 UTC](https://meta.discourse.org/t/automatic-session-management-with-oauth-sso/167204 "2020-10-14T15:57:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [14 oktober 2020 om 16:48 UTC](https://meta.discourse.org/t/automatic-session-management-with-oauth-sso/167204/2 "2020-10-14T16:48:53Z")

</div>

> [@vagosduke](#):
>
> it requires users to click sign-in with SSO again when they visit Discourse. Is there a way, e.g. an API call to automatically initiate a session with Discourse as well when users log-in via the common SSO from Service A or B?

You just need to enable the `login required` site setting for this.

> [@vagosduke](#):
>
> Maintaining a “public” Discourse service poses no issue with the comment section, and comments are embedded properly. However if running a private Discourse service, the embedded comment window will not display the comments properly if users has not logged-in also to Discourse beforehand, which is a problem when talking about seamless integration.

Enabling the `login required` site setting will also solve this.

---

_[View the full topic](https://meta.discourse.org/t/automatic-session-management-with-oauth-sso/167204)._
