Login to Discourse with custom Oauth2 provider

Here is my problem: SSO vs Oauth2 difference? - #3 by leog

Seems like I’m confusing things then, or maybe the use case I want to cover isn’t possible.