From 54f42edba4a8f81d48dc8b2287b7c7421e673022 Mon Sep 17 00:00:00 2001 From: Edward Muller Date: Fri, 19 Aug 2016 14:41:51 -0700 Subject: [PATCH] heroku: Add Heroku's endpoints The endpoints are documented here: https://devcenter.heroku.com/articles/oauth Change-Id: Ie8012d7588fc29afda7dd64f999c7418c32a5df2 Reviewed-on: https://go-review.googlesource.com/27635 Reviewed-by: Brad Fitzpatrick --- heroku/heroku.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 heroku/heroku.go diff --git a/heroku/heroku.go b/heroku/heroku.go new file mode 100644 index 0000000..5b4fdb8 --- /dev/null +++ b/heroku/heroku.go @@ -0,0 +1,16 @@ +// Copyright 2016 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 heroku provides constants for using OAuth2 to access Heroku. +package heroku // import "golang.org/x/oauth2/heroku" + +import ( + "golang.org/x/oauth2" +) + +// Endpoint is Heroku's OAuth 2.0 endpoint. +var Endpoint = oauth2.Endpoint{ + AuthURL: "https://id.heroku.com/oauth/authorize", + TokenURL: "https://id.heroku.com/oauth/token", +}