# Login user to discourse from external page

**URL:** <https://meta.discourse.org/t/login-user-to-discourse-from-external-page/245875>\
**Category:** SSO\
**Created:** [November 17, 2022, 7:59am UTC](https://meta.discourse.org/t/login-user-to-discourse-from-external-page/245875 "2022-11-17T07:59:20Z")\
**Posts on this page:** 1\
**Page:** 1

## AI-generated summary

[Justinvolved](/t/-/245875/1) seeks assistance with implementing Single Sign-On (SSO) for Discourse from an external system (System A). While the user understands the standard flow where Discourse redirects to an SSO provider, they need to handle the reverse scenario: logging a user into Discourse after they successfully authenticate directly on System A. The core question is how to authenticate the user in Discourse without relying on the standard `PAYLOAD` and `SIG` URL parameters typically used in the redirect flow. The post references the official DiscourseConnect documentation for context.

<div class="post-metadata">

**Author:** ![Justinvolved](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justinvolved/32/246076_2.png) [@Justinvolved](https://meta.discourse.org/u/Justinvolved)\
**Post date:** [November 17, 2022, 7:59am UTC](https://meta.discourse.org/t/login-user-to-discourse-from-external-page/245875/1 "2022-11-17T07:59:20Z")

</div>

Hi all, (quick repost hoping my question is in a better visible place here 🙂 )

I think I understand the process where a user navigates to the Discourse login, and then get’s redirected to the SSO login page.  
But I have a login page that users can directly request as well, and when they login to (let’s call it) system A I also want to log them in to Discourse.  
So the scenario:

-User navigates direcltly to [https://systemA/login](https://systema/login)  
-User succesfully logs in to SystemA with their credentials  
-How do I login the user to my Discourse instance without the PAYLOAD and SIG url parameters?

How would I go about this?

Best regards,

Justin

Doorgaan met de discussie van [Setup DiscourseConnect - Official Single-Sign-On for Discourse (sso)](https://meta.discourse.org/t/setup-discourseconnect-official-single-sign-on-for-discourse-sso/13045/522):
