Allow user to authorize the third-party clients.
Find a file
2023-10-02 06:44:14 +08:00
js fix: location after authorized 2023-10-02 06:44:14 +08:00
less feat: authorize page 2023-10-01 22:09:46 +08:00
locale feat: add locale(en) 2023-10-02 06:14:59 +08:00
migrations feat: add default scope 2023-10-02 05:57:49 +08:00
src fix: location after authorized 2023-10-02 06:44:14 +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 chore: create migrations & access token storage 2023-09-30 09:19:12 +08:00
extend.php feat: oauth resource(ResourceScopeMiddleware.php) 2023-10-02 05:30:13 +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 06:22:44 +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

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