Magento 2 as SSO Provider?

I wanted to ask if anybody in here has achieved an integration where a Magento 2 instance is used a SSO provider for Discourse.

We tried to use Auth0, for example, and integrate Discourse and Magento 2 separately with this central database. But while this works nice with Discourse, on Magento’s side it disrupts the login/registration flow, which is so important while a user is completing a purchase.

So we were thinking of instead using Magento 2 as the SSO provider which we would use to login in Discourse; anyhow it looks like there is no existing solution - or am I missing something?