Skip to content

Commit

Permalink
oauth2: add Yandex endpoint
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
dartkron authored and bradfitz committed Feb 27, 2017
1 parent b9780ec commit 810daf0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions yandex/yandex.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright 2017 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 yandex provides constants for using OAuth2 to access Yandex APIs.
package yandex // import "golang.org/x/oauth2/yandex"

import (
"golang.org/x/oauth2"
)

// Endpoint is the Yandex OAuth 2.0 endpoint.
var Endpoint = oauth2.Endpoint{
AuthURL: "https://oauth.yandex.com/authorize",
TokenURL: "https://oauth.yandex.com/token",
}

0 comments on commit 810daf0

Please sign in to comment.