From 9ecad5029bb3332276edfb7b23add78b0387a9f3 Mon Sep 17 00:00:00 2001 From: Manu S Ajith Date: Thu, 17 Sep 2015 07:54:58 +0530 Subject: [PATCH] bitbucket: add end points Change-Id: I0dee5ae8d822ecf0bc873534fbbba5d0ec546c7b Reviewed-on: https://go-review.googlesource.com/14664 Reviewed-by: Andrew Gerrand --- bitbucket/bitbucket.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 bitbucket/bitbucket.go diff --git a/bitbucket/bitbucket.go b/bitbucket/bitbucket.go new file mode 100644 index 0000000..44af1f1 --- /dev/null +++ b/bitbucket/bitbucket.go @@ -0,0 +1,16 @@ +// Copyright 2015 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 bitbucket provides constants for using OAuth2 to access Bitbucket. +package bitbucket + +import ( + "golang.org/x/oauth2" +) + +// Endpoint is Bitbucket's OAuth 2.0 endpoint. +var Endpoint = oauth2.Endpoint{ + AuthURL: "https://bitbucket.org/site/oauth2/authorize", + TokenURL: "https://bitbucket.org/site/oauth2/access_token", +}