maicol07 / flarum-jwt-auth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JWT Register and Authenticate by Coldsnake Digital

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.

About

License:MIT License


Languages

Language:PHP 82.2%Language:JavaScript 17.8%