From f6687ab2804cbebdfdeef385bee94918b1ce83de Mon Sep 17 00:00:00 2001 From: akay Date: Wed, 14 Apr 2021 21:30:59 +0000 Subject: [PATCH] endpoints: add Battlenet endpoints OAuth APIs: https://develop.battle.net/documentation/battle-net/oauth-apis Change-Id: I7c10f68c6ef0cb9b77cffa104e71a7198a599c89 GitHub-Last-Rev: e9596432c8cc6f91346cd6f38d14802ea6e35dd0 GitHub-Pull-Request: golang/oauth2#489 Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/310249 Reviewed-by: Brad Fitzpatrick Trust: Brad Fitzpatrick Trust: Heschi Kreinick Run-TryBot: Brad Fitzpatrick TryBot-Result: Go Bot --- endpoints/endpoints.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/endpoints/endpoints.go b/endpoints/endpoints.go index 6e85ff3..cd3e167 100644 --- a/endpoints/endpoints.go +++ b/endpoints/endpoints.go @@ -17,6 +17,12 @@ var Amazon = oauth2.Endpoint{ TokenURL: "https://api.amazon.com/auth/o2/token", } +// Battlenet is the endpoint for Battlenet. +var Battlenet = oauth2.Endpoint{ + AuthURL: "https://battle.net/oauth/authorize", + TokenURL: "https://battle.net/oauth/token", +} + // Bitbucket is the endpoint for Bitbucket. var Bitbucket = oauth2.Endpoint{ AuthURL: "https://bitbucket.org/site/oauth2/authorize",