Skip to content

Commit 1679411

Browse files
committed
github: new package with Github's Endpoint
Change-Id: I4a64493f521678570a89d5da76604c258fb9ceac Reviewed-on: https://go-review.googlesource.com/1631 Reviewed-by: Andrew Gerrand <adg@golang.org>
1 parent 9b6b761 commit 1679411

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

github/github.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright 2014 The oauth2 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 github provides constants for using OAuth2 to access Github.
6+
package github // import "golang.org/x/oauth2/github"
7+
8+
import (
9+
"golang.org/x/oauth2"
10+
)
11+
12+
// Endpoint is Github's OAuth 2.0 endpoint.
13+
var Endpoint = oauth2.Endpoint{
14+
AuthURL: "https://github.com/login/oauth/authorize",
15+
TokenURL: "https://github.com/login/oauth/access_token",
16+
}

0 commit comments

Comments
 (0)