Skip to content

Commit 810daf0

Browse files
dartkronbradfitz
authored andcommitted
oauth2: add Yandex endpoint
Checked with simple application, worked good for me. Change-Id: I068b33c1b44a338a7b0a9b17220bc39db81f2eed Reviewed-on: https://go-review.googlesource.com/37443 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent b9780ec commit 810daf0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

yandex/yandex.go

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright 2017 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
// Package yandex provides constants for using OAuth2 to access Yandex APIs.
6+
package yandex // import "golang.org/x/oauth2/yandex"
7+
8+
import (
9+
"golang.org/x/oauth2"
10+
)
11+
12+
// Endpoint is the Yandex OAuth 2.0 endpoint.
13+
var Endpoint = oauth2.Endpoint{
14+
AuthURL: "https://oauth.yandex.com/authorize",
15+
TokenURL: "https://oauth.yandex.com/token",
16+
}

0 commit comments

Comments
 (0)