OAuth 2 ואתרי דיון אחרים?

סיכום מבוסס בינה מלאכותית

Joshua_Kogan asks how to allow users from an existing Discourse site to log in to their new site using OAuth 2. Renato explains that SSO (Single Sign-On) can be used, referencing the Discourse SSO provider guide, and clarifies that the SSO setup requires control over the identity provider. Joshua_Kogan questions whether this would work with a third-party Discourse site they don’t own, and renato confirms it’s not possible without access to the other site’s SSO secrets. merefield suggests using an external identity manager like Auth0 for scalability, while pfaffman reinforces that SSO requires control over the provider.

Hi there. I plan on starting a site that will have some user overlap with an already-existing discourse site. I’d like for my visitors to be able to create accounts with their creds from the other discourse site. How would this be done?

I’d suggest Use Discourse as an identity provider (SSO, DiscourseConnect).

So, going down this path will allow me to add a new button to my login buttons (fb, discord, gihub, google, etc.), and this new button will be for a different discourse forum, which I don’t own and operate?

Yes, this is one possible setup for the official WP Discourse plugin (just an example of the SSO provider / SSO client relationship).

If this site you’re starting is another Discourse instance it may be possible, too, but I don’t know if there’s any documentation here on meta on this approach.

This is not possible. You can’t get private user data from any external website without an additional security step, in this case in the form of the sso provider secrets used when doing the SSO flow.

You might also consider a dedicated access and identity manager like http://auth0.com/ if you believe things might expand even more down the line …

No. Sso would be the only provider. And if you don’t have control of the other site then there is no way that you can use it for authentication.