From 1679411e42eca76f2e54eacefbfa4fa2ed982215 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 16 Dec 2014 17:33:49 +1100 Subject: [PATCH] github: new package with Github's Endpoint Change-Id: I4a64493f521678570a89d5da76604c258fb9ceac Reviewed-on: https://go-review.googlesource.com/1631 Reviewed-by: Andrew Gerrand --- github/github.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 github/github.go diff --git a/github/github.go b/github/github.go new file mode 100644 index 0000000..1648cb5 --- /dev/null +++ b/github/github.go @@ -0,0 +1,16 @@ +// Copyright 2014 The oauth2 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 github provides constants for using OAuth2 to access Github. +package github // import "golang.org/x/oauth2/github" + +import ( + "golang.org/x/oauth2" +) + +// Endpoint is Github's OAuth 2.0 endpoint. +var Endpoint = oauth2.Endpoint{ + AuthURL: "https://github.com/login/oauth/authorize", + TokenURL: "https://github.com/login/oauth/access_token", +}