# What to do with response from Discourse SSO as provider

**URL:** <https://meta.discourse.org/t/what-to-do-with-response-from-discourse-sso-as-provider/102004>\
**Category:** SSO\
**Created:** [14.Ноябрь.2018 09:00:41 UTC](https://meta.discourse.org/t/what-to-do-with-response-from-discourse-sso-as-provider/102004 "2018-11-14T09:00:41Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Jesper\_Enemark](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesper_enemark/32/111051_2.png) [@Jesper\_Enemark](https://meta.discourse.org/u/Jesper_Enemark)\
**Post date:** [14.Ноябрь.2018 09:00:41 UTC](https://meta.discourse.org/t/what-to-do-with-response-from-discourse-sso-as-provider/102004/1 "2018-11-14T09:00:41Z")

</div>

I have been working to create authentication for my 3rd party application using Discourse as a SSO provider.

This means I get a response from discourse, to my web app containing the discourse user. Everything works flawlessly until I remind myself that I need to store the user with a token to keep my user logged in. I do not receive a token from the discourse server, which brings me to the following question.  
How do I store my user in a secure way after I verify that the nonce I sent over with my payload and the nonce I receive corresponds to one another?

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/d/bd229f31caeb1435eac7cc2f2b92feedc57ce124.png)

The data I am retrieving from the authenticated user is the following:

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/4/04d44ebb111c2134a5f0ddaa83d2a84a5c628ebd.png)

If I am displaying ignorance on this topic then feel free to enlighten me.

---

_[View the full topic](https://meta.discourse.org/t/what-to-do-with-response-from-discourse-sso-as-provider/102004)._
