diff --git a/endpoints/endpoints.go b/endpoints/endpoints.go index cd3e1676..82c9c33d 100644 --- a/endpoints/endpoints.go +++ b/endpoints/endpoints.go @@ -19,7 +19,7 @@ var Amazon = oauth2.Endpoint{ // Battlenet is the endpoint for Battlenet. var Battlenet = oauth2.Endpoint{ - AuthURL: "https://battle.net/oauth/authorize", + AuthURL: "https://battle.net/oauth/authorize", TokenURL: "https://battle.net/oauth/token", } @@ -215,6 +215,12 @@ var Zoom = oauth2.Endpoint{ TokenURL: "https://zoom.us/oauth/token", } +// Baidu is the endpoint for Baidu. +var Baidu = oauth2.Endpoint{ + AuthURL: "http://openapi.baidu.com/oauth/2.0/authorize", + TokenURL: "https://openapi.baidu.com/oauth/2.0/token", +} + // AzureAD returns a new oauth2.Endpoint for the given tenant at Azure Active Directory. // If tenant is empty, it uses the tenant called `common`. //