# Ensure that user is signed in to Discourse

**URL:** <https://meta.discourse.org/t/ensure-that-user-is-signed-in-to-discourse/86396>\
**Category:** SSO\
**Created:** [April 29, 2018, 8:03am UTC](https://meta.discourse.org/t/ensure-that-user-is-signed-in-to-discourse/86396 "2018-04-29T08:03:37Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![adopilot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adopilot/32/105040_2.png) [@adopilot](https://meta.discourse.org/u/adopilot)\
**Post date:** [April 29, 2018, 8:03am UTC](https://meta.discourse.org/t/ensure-that-user-is-signed-in-to-discourse/86396/1 "2018-04-29T08:03:38Z")

</div>

Our discource is set to use SSO from our businesses app.  
In few business process we use discourse as email and notification relay.  
Some business flow starting at our erp with forms and moving on discource.  
Since discource crating SSO users only when they loged in discource, we have cases that users exists in our erp, but they do not exists in discoure.  
It happens if they did not sing in discource ever.  
If my users does not exists in discource the work flow fails.  
User is not going to be notified by email or desktop notification.  
Our app can check does user exist in discource by finding user by external-id.  
But I do not have an idea how to push user to sing in to discource and send him back to initial form, if app realize that user does not exist in discourse.

Is there some discource endpoint that will after singing in redirect user to parametered url ?

I want to send user to singing in discource and get back to my form ?

---

_[View the full topic](https://meta.discourse.org/t/ensure-that-user-is-signed-in-to-discourse/86396)._
