From e585185218a1268736da499ab73c9a930e94a2a3 Mon Sep 17 00:00:00 2001 From: JBD Date: Wed, 22 Nov 2017 15:02:45 -0800 Subject: [PATCH] azure: add Azure endpoints Fixes #257. Change-Id: I0fa087fd921256f03a0cd62a8ab559c5c63f4d0f Reviewed-on: https://go-review.googlesource.com/79397 Reviewed-by: Brad Fitzpatrick --- azure/azure.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 azure/azure.go diff --git a/azure/azure.go b/azure/azure.go new file mode 100644 index 0000000..171b264 --- /dev/null +++ b/azure/azure.go @@ -0,0 +1,16 @@ +// Copyright 2017 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 azure provides constants for using OAuth2 to access Azure Active Directory (Azure AD). +package azure + +import ( + "golang.org/x/oauth2" +) + +// Endpoint is the Azure Active Directory (Azure AD) OAuth 2.0 endpoint. +var Endpoint = oauth2.Endpoint{ + AuthURL: "https://login.microsoftonline.com/common/oauth2/v2.0/authorize", + TokenURL: "https://login.microsoftonline.com/common/oauth2/v2.0/token", +}