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 ?