How to hook up JWT Single Sign On to Discourse

We are investigating using Discourse as a forum section for our website. Our existing app is a Play 2.5 application with it’s own login setup and a JWT authenticator. Our goal is to implement some form of single-sign-on setup where users will be redirected (from Discourse) to our Play app to authenticate, the JWT token is created and sent back (via redirect) to Discourse for use in validating subsequent actions.

I found both GitHub - discourse/discourse-omniauth-jwt: An OmniAuth strategy that uses JSON Web Token for Single Sign-On and GitHub - discourse/discourse-jwt: Discourse Auth support for JSON Web Tokens (JWT) but am unsure if they will support what we are looking for or how to integrate them (I am very new to Discourse). Is there a similar alternative (with JWT) that I am unaware of?

The official JWT Plugin is what you want. We’ve deployed it in production and it works well for people.

If you’re unsure how to install a plugin, I suggest you check out @techAPJ’s excellent guide.

Bonjour, nous essayons de mettre en œuvre un flux similaire à celui du post original. J’ai consulté le plugin JWT et le guide d’installation, et il semble qu’ils ne décrivent que l’installation sur des instances auto-hébergées, et le plugin n’était répertorié sous aucun plan commercial. Ma question est donc : comment est-il possible d’utiliser le plugin JWT avec une instance non auto-hébergée ?

Malheureusement, nous n’incluons pas la prise en charge de JWT dans notre offre professionnelle et recommandons vivement l’utilisation d’OpenID, d’OAuth2 ou de DiscourseConnect. Est-ce votre seule option d’authentification ?