You’ll need to implementing DiscourseConnect - Official Single-Sign-On for Discourse (sso) in your app.