Questo.
Vedi Sync DiscourseConnect user data with the sync_sso route che fa esattamente ciò di cui hai bisogno.