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.

Ciao, stiamo cercando di implementare un flusso simile a quello descritto nel post originale. Ho controllato il plugin JWT e la guida all’installazione, e sembra che descrivano solo come installarlo su istanze self-hosted, e il plugin non è elencato in nessun piano business. Quindi la mia domanda è: come è possibile utilizzare il plugin JWT con un’istanza non self-hosted?

Purtroppo non includiamo il supporto JWT nel nostro piano business e consigliamo vivamente di utilizzare OpenID, OAuth2 o DiscourseConnect. È questa la tua unica opzione per l’autenticazione?