Allow user to authorize the third-party clients.
Find a file
2023-10-13 21:16:07 +08:00
js feat: add oauth group permission 2023-10-13 20:30:09 +08:00
less feat: authorize page 2023-10-01 22:09:46 +08:00
locale feat: add oauth group permission 2023-10-13 20:30:09 +08:00
migrations feat: add default scope 2023-10-02 05:57:49 +08:00
src fix: check permissions in grant type of user credentials 2023-10-13 20:56:45 +08:00
tests chore: create the package 2023-09-30 09:18:17 +08:00
.editorconfig chore: create the package 2023-09-30 09:18:17 +08:00
.gitattributes chore: create the package 2023-09-30 09:18:17 +08:00
.gitignore chore: create the package 2023-09-30 09:18:17 +08:00
.styleci.yml chore: create the package 2023-09-30 09:18:17 +08:00
composer.json test 2023-10-13 21:16:07 +08:00
extend.php fix: check permissions in grant type of user credentials 2023-10-13 20:56:45 +08:00
LICENSE.md chore: clean the license 2023-09-30 09:18:36 +08:00
README.md docs: update README.md 2023-10-02 07:04:13 +08:00

OAuth Center

License Latest Stable Version Total Downloads

A Flarum extension. Allow user to authorize the third clients

Installation

Install with composer:

composer require foskym/flarum-oauth-center:"*"

Updating

composer update foskym/flarum-oauth-center:"*"
php flarum migrate
php flarum cache:clear

Usage

setting

Snipaste_2023-10-02_06-15-33

create a client

Snipaste_2023-10-02_06-15-52

set scope for your resources (user.read is default scope)

Snipaste_2023-10-02_06-16-06

uri

authorize: /oauth/authorize

token: /oauth/token

resource(user): /api/user

do it as normal OAuth client

Snipaste_2023-10-02_06-16-31

get access token after authorized

Snipaste_2023-10-02_06-17-00

using token to access resources (get or header)

Snipaste_2023-10-02_06-17-29 Snipaste_2023-10-02_06-17-42