From 462316686f20eb6df426961c1c131bdaa5dfa68e Mon Sep 17 00:00:00 2001 From: Vladimir Varankin Date: Sat, 16 Dec 2017 00:06:10 +0300 Subject: [PATCH] mailru: add Mail.Ru OAuth2 endpoint Mail.Ru is one of the most popular email service provider in Russia. The documentation for Mail.Ru's OAuth2 endpoints is at https://o2.mail.ru/docs/ Change-Id: I605979b85cff2b00c7b65bbd3306d3fa66faa56d Reviewed-on: https://go-review.googlesource.com/84415 Reviewed-by: Brad Fitzpatrick --- mailru/mailru.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 mailru/mailru.go diff --git a/mailru/mailru.go b/mailru/mailru.go new file mode 100644 index 0000000..dddd9dd --- /dev/null +++ b/mailru/mailru.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 mailru provides constants for using OAuth2 to access Mail.Ru. +package mailru // import "golang.org/x/oauth2/mailru" + +import ( + "golang.org/x/oauth2" +) + +// Endpoint is Mail.Ru's OAuth 2.0 endpoint. +var Endpoint = oauth2.Endpoint{ + AuthURL: "https://o2.mail.ru/login", + TokenURL: "https://o2.mail.ru/token", +}