maicol07/flarum-jwt-auth

This package is abandoned and no longer maintained. No replacement package was suggested.

Register and authenticate through a JWT token

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 1

Type:flarum-extension

dev-master 2020-10-11 14:53 UTC

This package is auto-updated.

Last update: 2020-11-11 15:00:50 UTC


README

MIT license

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.