diff options
| author | Zeyla Hellyer <[email protected]> | 2017-12-03 13:48:37 -0800 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-12-03 13:48:37 -0800 |
| commit | bc1870baa0ae1cf0f133c3f7009b11dab2c4f7b9 (patch) | |
| tree | 2fdbdef751b2c67be6c7f6181a78d118b716cc43 /src/constants.rs | |
| download | oauth-master.tar.xz oauth-master.zip | |
Diffstat (limited to 'src/constants.rs')
| -rw-r--r-- | src/constants.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/constants.rs b/src/constants.rs new file mode 100644 index 0000000..76e4e0c --- /dev/null +++ b/src/constants.rs @@ -0,0 +1,9 @@ +//! A set of constants around the OAuth2 API. + +/// The base authorization URI, used for authorizing an application. +pub const BASE_AUTHORIZE_URI: &str = "https://discordapp.com/api/oauth2/authorize"; +/// The revocation URL, used to revoke an access token. +pub const BASE_REVOKE_URI: &str = "https://discordapp.com/api/oauth2/revoke"; +/// The token URI, used for exchanging a refresh token for a fresh access token +/// and new refresh token. +pub const BASE_TOKEN_URI: &str = "https://discordapp.com/api/oauth2/token"; |