Login w/ Discourse w/o SSO?

AI-generated summary

cookieman768 is looking for a way to allow users to log in to Discourse without using the SSO plugin, instead using OAuth with Discord and Google. pfaffman suggests using Discourse SSO, recommending resources such as DiscourseConnect and the WP Discourse plugin installation and setup. After clarification, pfaffman explains that Discourse can work with OAuth providers and SSO. cookieman768 then searches for a PHP library to initiate SSO login and finds a promising resource: Using Discourse as an Identity Provider (SSO) - DiscourseConnect.

Hello! I was trying to have a way where users login with Discourse without using the SSO plugin. I’m wondering if it would be possible since I’m not using the Discourse SSO but, you can log in to the Discourse iOS app almost as if it were OAuth.

I guess my question is - how could I have an external site where it redirects them to Discourse, asks for a prompt, and then returns to that other site? I tried searching but, I might have just not understood what this would be called exactly. I’m planning on using PHP if you have any good resources!

I’m not clear why not use sso.

You could use DiscourseConnect - Official Single-Sign-On for Discourse (sso) and check out the WP Discourse plugin installation and setup as a reference for developing php code to connect to it.

Well, I guess I might not be understanding how Discourse SSO would work. I want users signing in via OAuth (Discord & Google) but, I wasn’t sure if I could still do that with Discourse SSO.

Discourse can use all of those and your app can log in against discourse.

Oh thank you! I just was confused on what Discourse SSO meant - I’m sure there’s a nice PHP library to initiate an SSO login so I can get the user’s discourse info.

Edit: Yeah, I guess reading through I don’t understand how or what I’d need to setup on the PHP side in order to integrate with Discourse. I’ll keep searching around here to see if there’s a post about it.

Edit 2: This looks promising: Use Discourse as an identity provider (SSO, DiscourseConnect)