Skip to content

Commit

Permalink
Add OAuth Scopes Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurpar06 committed Jul 2, 2024
1 parent ddd7754 commit def0169
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/oauth/discord.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,12 @@ Place the token in the `.env`:
```shell title=".env"
DISCORD_BOT_TOKEN={your_bot_token_copied_before}
```

## Customizing scopes

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.
See [Discord Scopes List](https://discord.com/developers/docs/topics/oauth2)

```shell title=".env"
DISCORD_SCOPES=scope1,scope2
```
9 changes: 9 additions & 0 deletions docs/oauth/vatsim.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,12 @@ VATSIM_CLIENT_SECRET={your_client_secret}
You can retrieve your client ID and your client secret from the OAuth clients page after creating the client as explained above.

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.

## Customizing scopes

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.
See [VATSIM Scopes List](https://vatsim.dev/api/connect-api/redirect)

```shell title=".env"
VATSIM_SCOPES=scope1,scope2
```

0 comments on commit def0169

Please sign in to comment.