Skip to content

Commit 762dedb

Browse files
authored
Merge pull request #21 from arthurpar06/addOAuthScopesDocs
Add OAuth Scopes Docs
2 parents 7705c3e + def0169 commit 762dedb

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

docs/oauth/discord.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,12 @@ Place the token in the `.env`:
3232
```shell title=".env"
3333
DISCORD_BOT_TOKEN={your_bot_token_copied_before}
3434
```
35+
36+
## Customizing scopes
37+
38+
You can add scopes to the OAuth request in addition to the default scopes by adding your scopes to the `.env` file, separated by commas.
39+
See [Discord Scopes List](https://discord.com/developers/docs/topics/oauth2)
40+
41+
```shell title=".env"
42+
DISCORD_SCOPES=scope1,scope2
43+
```

docs/oauth/vatsim.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,12 @@ VATSIM_CLIENT_SECRET={your_client_secret}
2222
You can retrieve your client ID and your client secret from the OAuth clients page after creating the client as explained above.
2323

2424
Now, your users can link their VATSIM account to their phpVMS account and use their VATSIM account to log in. The link between the two accounts is automatically established when clicking the "Login with VATSIM" button on the login page. However, if the email address of the VATSIM account is different from the email address of the phpVMS account, it must be done manually on the profile page.
25+
26+
## Customizing scopes
27+
28+
You can add scopes to the OAuth request in addition to the default scopes by adding your scopes to the `.env` file, separated by commas.
29+
See [VATSIM Scopes List](https://vatsim.dev/api/connect-api/redirect)
30+
31+
```shell title=".env"
32+
VATSIM_SCOPES=scope1,scope2
33+
```

0 commit comments

Comments
 (0)