Skip to content

Commit

Permalink
mailru: add Mail.Ru OAuth2 endpoint
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
narqo authored and bradfitz committed Dec 15, 2017
1 parent dfbc866 commit 4623166
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions mailru/mailru.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 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",
}

0 comments on commit 4623166

Please sign in to comment.