NOTE: MOVED TO FLARUM SSO EXTENSION
A fork of rattler72/flarum-jwt-auth.
This extension registers and authenticates a user based on a JWT.
Use Composer:
composer require maicol07/flarum-jwt-auth
composer update maicol07/flarum-jwt-auth
php flarum cache:clear
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.