From 2a7948fffdbfa0a1e050033a0ab5bd439ee738f0 Mon Sep 17 00:00:00 2001 From: FoskyM Date: Mon, 2 Oct 2023 06:22:44 +0800 Subject: [PATCH] docs: update README.md --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 4a0296d..2940eb8 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,27 @@ php flarum migrate php flarum cache:clear ``` +## Usage + +### setting +![Snipaste_2023-10-02_06-15-33](https://github.com/FoskyM/flarum-oauth-center/assets/39661663/0e8352bf-0aeb-4605-bd84-aaedf8cae0e8) + +### create a client +![Snipaste_2023-10-02_06-15-52](https://github.com/FoskyM/flarum-oauth-center/assets/39661663/e9879852-f4ec-4a04-9f81-58004692493c) + +### set scope for your resources (user.read is default scope) +![Snipaste_2023-10-02_06-16-06](https://github.com/FoskyM/flarum-oauth-center/assets/39661663/31648ad2-4326-47e0-9d26-c0e3b2f30f8d) + +### do it as normal OAuth client +![Snipaste_2023-10-02_06-16-31](https://github.com/FoskyM/flarum-oauth-center/assets/39661663/1632672e-e631-41bc-b794-40428157b41c) + +### get access token after authorized +![Snipaste_2023-10-02_06-17-00](https://github.com/FoskyM/flarum-oauth-center/assets/39661663/52f1b984-345b-4e09-8b8c-dcdf39712fb3) + +### using token to access resources (get or header) +![Snipaste_2023-10-02_06-17-29](https://github.com/FoskyM/flarum-oauth-center/assets/39661663/aa79ad3b-a480-4d09-9159-359be4518f4b) +![Snipaste_2023-10-02_06-17-42](https://github.com/FoskyM/flarum-oauth-center/assets/39661663/5054ac5b-da79-4db3-9703-94e10a1cde5f) + ## Links - [Packagist](https://packagist.org/packages/foskym/flarum-oauth-center)