|
1 | 1 | # Sign in With Slack |
2 | 2 |
|
3 | | - [](https://packagist.org/packages/blomstra/oauth-slack) [](https://packagist.org/packages/blomstra/oauth-slack) |
| 3 | + [](https://packagist.org/packages/gbcl/oauth-logto) [](https://packagist.org/packages/gbcl/oauth-logto) |
4 | 4 |
|
5 | | -A [Flarum](http://flarum.org) extension. Sign in with Slack |
| 5 | +A [Flarum](http://flarum.org) extension. Sign in with Logto Cloud or OSS |
6 | 6 |
|
7 | 7 | ## Installation |
8 | 8 |
|
9 | 9 | Install with composer: |
10 | 10 |
|
11 | 11 | ```sh |
12 | | -composer require blomstra/oauth-slack:"*" |
| 12 | +composer require gbcl/oauth-logto:"*" |
13 | 13 | ``` |
14 | 14 |
|
15 | 15 | ## Updating |
16 | 16 |
|
17 | 17 | ```sh |
18 | | -composer update blomstra/oauth-slack |
| 18 | +composer update gbcl/oauth-logto |
19 | 19 | php flarum cache:clear |
20 | 20 | ``` |
21 | 21 |
|
22 | 22 | ## Configuration |
23 | 23 |
|
24 | | -Once enabled, this extension will add a `Slack` option to the settings page of `fof/oauth`. Toggle `Slack` on, and hit the configure icon. |
| 24 | +Once enabled, this extension will add a `Logto` option to the settings page of `fof/oauth`. Toggle `Logto` on, and hit the configure icon. |
25 | 25 |
|
26 | | -Follow the [Slack documentation](https://api.slack.com/authentication/sign-in-with-slack) to create an [application](https://api.slack.com/apps) |
| 26 | +Created an `Traditional Web` Application on `Authentication > Applications > Create Application` |
| 27 | +Set the `Redirect URIs` labels to `https://your-flarum/auth/logto`, |
| 28 | +then, copy three things in the settings: |
| 29 | + - Logto endpoint |
| 30 | + - App secrets > Default secret > value |
| 31 | + - App ID |
27 | 32 |
|
28 | | -It is **imperitive** that you grant the following scopes to your new application at Slack: |
29 | | -- `openid` |
30 | | -- `email` |
31 | | -- `profile` |
| 33 | +Paste the stuff above to the settings page of `fof/oauth`. One thing you need to notice that the `logto_domain` label needs to exclude the HTTP Protocol. |
32 | 34 |
|
33 | | -Set the callback URL as given in the extension settings. |
| 35 | +## Support |
34 | 36 |
|
35 | | -Enter the `Client ID` and `Client Secret` as displayed in the `Basic Information` page at Slack into the Flarum configuration. |
36 | | - |
37 | | -Enjoy logging in with your Slack credentials! |
| 37 | +This extension is under active development. Provide [GitHub Issues](https://github.com/GBCLStudio/flarum-oauth-logto/issues) to help us improve. |
38 | 38 |
|
39 | 39 | ## Links |
40 | 40 |
|
41 | | -- [Packagist](https://packagist.org/packages/blomstra/oauth-slack) |
42 | | -- [GitHub](https://github.com/blomstra/flarum-ext-oauth-slack) |
43 | | -- [Discuss](https://discuss.flarum.org/d/31039) |
| 41 | +- [Packagist](https://packagist.org/packages/gbcl/oauth-logto) |
| 42 | +- [GitHub](https://github.com/GBCLStudio/flarum-oauth-logto) |
| 43 | + |
| 44 | +## Made with ❤ by GBCLStudio |
| 45 | + |
| 46 | +Support Us: |
| 47 | + - [Afdian 爱发电](https://afdian.com/@GBCLStudio) |
| 48 | + - [OpenCollective](https://opencollective.com/gbclstudio) |
0 commit comments