# Login to discourse automatically via SSO

**URL:** https://meta.discourse.org/t/login-to-discourse-automatically-via-sso/327995
**Category:** Support
**Created:** [September 24, 2024, 9:57pm UTC](https://meta.discourse.org/t/login-to-discourse-automatically-via-sso/327995 "2024-09-24T21:57:33Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [September 25, 2024, 5:35am UTC](https://meta.discourse.org/t/login-to-discourse-automatically-via-sso/327995/4 "2024-09-25T05:35:42Z")

</div>

> [@Nishkarsh\_Tripathi](#):
>
> Is it the responsibility of my SSO page to detect if the user is already logged in and, if so, skip the login process and just return the redirect link?

Yes. Have a look at this post from the topic to see how the [WP Discourse](https://github.com/discourse/wp-discourse) plugin handles it: [Create a DiscourseConnect login link - #5 by simon](https://meta.discourse.org/t/create-a-discourseconnect-login-link/109290/5).

Tomorrow I’ll update the first post in the topic to add that information.

---

_[View the full topic](https://meta.discourse.org/t/login-to-discourse-automatically-via-sso/327995)._
