We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea8c673 commit 6a2004cCopy full SHA for 6a2004c
microsoft/microsoft.go
@@ -14,3 +14,14 @@ var LiveConnectEndpoint = oauth2.Endpoint{
14
AuthURL: "https://login.live.com/oauth20_authorize.srf",
15
TokenURL: "https://login.live.com/oauth20_token.srf",
16
}
17
+
18
+// AzureActiveDirectoryEndpoint returns a new oauth2.Endpoint for the given tenant at Azure Active Directory.
19
+//
20
+// For more information see:
21
+// https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-v2-protocols#endpoints
22
+func AzureActiveDirectoryEndpoint(tenant string) oauth2.Endpoint {
23
+ return oauth2.Endpoint{
24
+ AuthURL: "https://login.microsoftonline.com/" + tenant + "/oauth2/v2.0/authorize",
25
+ TokenURL: "https://login.microsoftonline.com/" + tenant + "/oauth2/v2.0/token",
26
+ }
27
+}
0 commit comments