box: add box.com OAuth endpoint

More info [here][1].

[1]: https://box-content.readme.io/docs/oauth-20
This commit is contained in:
Zoran Plesivčak 2019-07-12 22:43:17 +01:00
Родитель 32e393cdb0
Коммит f444c3dcc4
1 изменённых файлов: 16 добавлений и 0 удалений

16
box/box.go Normal file
Просмотреть файл

@ -0,0 +1,16 @@
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package box provides constants for using OAuth2 to access box.com.
package box // import "golang.org/x/oauth2/box"
import (
"golang.org/x/oauth2"
)
// Endpoint is box.com's OAuth 2.0 endpoint.
var Endpoint = oauth2.Endpoint{
AuthURL: "https://account.box.com/api/oauth2/authorize",
TokenURL: "https://api.box.com/oauth2/token",
}