Skip to content

Commit

Permalink
heroku: Add Heroku's endpoints
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Edward Muller authored and bradfitz committed Aug 23, 2016
1 parent 3b966c7 commit 54f42ed
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions heroku/heroku.go
Original file line number Diff line number Diff line change
@@ -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",
}

0 comments on commit 54f42ed

Please sign in to comment.