# Enabling Login to Discourse from a third party api

**URL:** <https://meta.discourse.org/t/enabling-login-to-discourse-from-a-third-party-api/237130>\
**Category:** SSO\
**Tags:** rest-api\
**Created:** [August 25, 2022, 5:54am UTC](https://meta.discourse.org/t/enabling-login-to-discourse-from-a-third-party-api/237130 "2022-08-25T05:54:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ghassan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ghassan/32/263566_2.png) [@ghassan](https://meta.discourse.org/u/ghassan)\
**Post date:** [August 25, 2022, 9:15am UTC](https://meta.discourse.org/t/enabling-login-to-discourse-from-a-third-party-api/237130/4 "2022-08-25T09:15:09Z")

</div>

I am just not sure which app has the source of truth. You are using Dicourse as identity provider that means each user by default should have a discourse account… But you also want users to access your app without relying to discourse, would that means discourse account is not required to access your app?. If that is true then probably what you need to do is develop to support auth with a third party apps, and then depending on the source of credentials(either discouese or 3rd party app) you set the logic of your app…

---

_[View the full topic](https://meta.discourse.org/t/enabling-login-to-discourse-from-a-third-party-api/237130)._
