From 810daf0509f84359cfa9527f6ea4886f1dbabfc5 Mon Sep 17 00:00:00 2001 From: Sergey Mishin Date: Mon, 27 Feb 2017 13:37:29 +0300 Subject: [PATCH] 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 --- yandex/yandex.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 yandex/yandex.go diff --git a/yandex/yandex.go b/yandex/yandex.go new file mode 100644 index 0000000..5ebf666 --- /dev/null +++ b/yandex/yandex.go @@ -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", +}