-
-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Step 2x: Setup Telegram | ||
==================== | ||
First you will need to create bot via [BotFather](https://telegram.me/BotFather) and then set you site domain to it | ||
|
||
``` | ||
/newbot | ||
nameof_bot | ||
``` | ||
|
||
Save token somewhere to put it as `client_secret` in config file | ||
|
||
``` | ||
/setdomain | ||
example.com | ||
``` | ||
Or you can do it via botfather buttons. | ||
|
||
Next configure a resource owner of type `telegram` with appropriate `client_secret` | ||
|
||
```yaml | ||
# config/packages/hwi_oauth.yaml | ||
|
||
hwi_oauth: | ||
resource_owners: | ||
any_name: | ||
type: telegram | ||
client_id: NOT_REQUIRED # but required by bundle | ||
client_secret: <bot_token> | ||
``` | ||
When you're done, continue by configuring the security layer or go back to | ||
setup more resource owners. | ||
- [Step 2: Configuring resource owners (Facebook, GitHub, Google, Windows Live and others](../2-configuring_resource_owners.md) | ||
- [Step 3: Configuring the security layer](../3-configuring_the_security_layer.md). |