Using Discourse as an authentication provider

What you looking for is Use Discourse as an identity provider (SSO, DiscourseConnect)