# How to use SSO (Discourse on subdomain)

**URL:** <https://meta.discourse.org/t/how-to-use-sso-discourse-on-subdomain/76630>\
**Category:** Self-hosting\
**Created:** [2017年十二月22日 15:53 UTC](https://meta.discourse.org/t/how-to-use-sso-discourse-on-subdomain/76630 "2017-12-22T15:53:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Post date:** [2017年十二月22日 16:18 UTC](https://meta.discourse.org/t/how-to-use-sso-discourse-on-subdomain/76630/2 "2017-12-22T16:18:14Z")

</div>

> [@Jean-Michel25](#):
>
> How to do ?  
> I can create PHP scripts, but I don’t know Ruby.

SSO provider feature is inbuilt in Discourse core. So you don’t have to worry about it. Follow this #howto [Use Discourse as an identity provider (SSO, DiscourseConnect)](https://meta.discourse.org/t/using-discourse-as-a-sso-provider/32974).

In [this line](https://gist.github.com/paxmanchris/e93018a3e8fbdfced039#file-sso_login_discourse-php-L37-L38) you will receive logged-in user details if you configured everything _(php code + settings)_ correctly.

---

_[View the full topic](https://meta.discourse.org/t/how-to-use-sso-discourse-on-subdomain/76630)._
