maicol07 / flarum-jwt-auth
Register and authenticate through a JWT token
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Type:flarum-extension
Requires
- php: >=7.2
- ext-json: *
- flarum/core: >=0.1.0-beta.12 <0.1.0-beta.14
- fof/components: >=0.1
- guzzlehttp/guzzle: ^6|^7
- laminas/laminas-diactoros: ^1
- lcobucci/jwt: ^3
Requires (Dev)
- roave/security-advisories: dev-master
This package is auto-updated.
Last update: 2020-11-11 15:00:50 UTC
README
NOTE: MOVED TO FLARUM SSO EXTENSION
A fork of rattler72/flarum-jwt-auth.
This extension registers and authenticates a user based on a JWT.
Installation
Use Composer:
composer require maicol07/flarum-jwt-auth
Updating
composer update maicol07/flarum-jwt-auth php flarum cache:clear
Usage
Pass the JWT as a param to the following URL: http://yourfloarumdomain.com/api/auth/jwt?token=[token]
.
This will register the user with the username being the same as the prefix of the email address and then log them into that account. The password is randomly generated. This is meant to work in conjunction with SSO extensions to handle ongoing authentication.