Skip to content

Commit 109dabf

Browse files
hhhapzgopherbot
authored andcommitted
endpoints: add links/provider for Discord
Endpoints are provided from https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-urls. Change-Id: I7bcc8b4cb5527959acb8f177ffb8bbafbe727e82 GitHub-Last-Rev: 6869fc3 GitHub-Pull-Request: #768 Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/649115 Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent ac571fa commit 109dabf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

endpoints/endpoints.go

+6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ var Cern = oauth2.Endpoint{
3535
TokenURL: "https://oauth.web.cern.ch/OAuth/Token",
3636
}
3737

38+
// Discord is the endpoint for Discord.
39+
var Discord = oauth2.Endpoint{
40+
AuthURL: "https://discord.com/oauth2/authorize",
41+
TokenURL: "https://discord.com/api/oauth2/token",
42+
}
43+
3844
// Facebook is the endpoint for Facebook.
3945
var Facebook = oauth2.Endpoint{
4046
AuthURL: "https://www.facebook.com/v3.2/dialog/oauth",

0 commit comments

Comments
 (0)