aboutsummaryrefslogtreecommitdiff
path: root/src/constants.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-12-03 13:48:37 -0800
committerZeyla Hellyer <[email protected]>2017-12-03 13:48:37 -0800
commitbc1870baa0ae1cf0f133c3f7009b11dab2c4f7b9 (patch)
tree2fdbdef751b2c67be6c7f6181a78d118b716cc43 /src/constants.rs
downloadoauth-master.tar.xz
oauth-master.zip
Initial commitHEADmaster
Diffstat (limited to 'src/constants.rs')
-rw-r--r--src/constants.rs9
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";