https://github.com/discourse/discourse-jwt
Discourse Auth support for JSON Web Tokens (JWT)
https://github.com/discourse/discourse-jwt
discourse-plugin jwt
Last synced: 3 months ago
JSON representation
Discourse Auth support for JSON Web Tokens (JWT)
- Host: GitHub
- URL: https://github.com/discourse/discourse-jwt
- Owner: discourse
- License: mit
- Created: 2015-09-11T18:57:38.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2025-03-17T10:59:46.000Z (3 months ago)
- Last Synced: 2025-03-26T05:22:26.210Z (3 months ago)
- Topics: discourse-plugin, jwt
- Language: Ruby
- Size: 336 KB
- Stars: 19
- Watchers: 24
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### discourse-jwt
A Discourse Plugin to enable authentication via JSON Web Tokens (JWT).
In the first instance, consider using Discourse's [OpenID Connect](https://meta.discourse.org/t/openid-connect-authentication-plugin/103632) or [OAuth2](https://meta.discourse.org/t/oauth2-basic-support/33879) plugins. These authentication standards are more mature, and include more security features.
### Configuration
This plugin provides three site settings for configuration. You must provide all three in your admin panel for the authentication to work correctly:
- `jwt_enabled`
- `jwt_secret`
- `jwt_auth_url`Alternatively, you can supply values for these settings via environment variables. Add the following settings to your `app.yml` file in the `env` section:
- `DISCOURSE_JWT_SECRET`
- `DISCOURSE_JWT_AUTH_URL`### License
MIT