Skip to content

Commit d96be21

Browse files
committed
Merge tag 'v0.20.0'
2 parents 9cc4c66 + 84cb9f7 commit d96be21

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
lines changed

endpoints/endpoints.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ var GitLab = oauth2.Endpoint{
6868

6969
// Google is the endpoint for Google.
7070
var Google = oauth2.Endpoint{
71-
AuthURL: "https://accounts.google.com/o/oauth2/auth",
72-
TokenURL: "https://oauth2.googleapis.com/token",
71+
AuthURL: "https://accounts.google.com/o/oauth2/auth",
72+
TokenURL: "https://oauth2.googleapis.com/token",
7373
DeviceAuthURL: "https://oauth2.googleapis.com/device/code",
7474
}
7575

@@ -227,8 +227,9 @@ func AzureAD(tenant string) oauth2.Endpoint {
227227
tenant = "common"
228228
}
229229
return oauth2.Endpoint{
230-
AuthURL: "https://login.microsoftonline.com/" + tenant + "/oauth2/v2.0/authorize",
231-
TokenURL: "https://login.microsoftonline.com/" + tenant + "/oauth2/v2.0/token",
230+
AuthURL: "https://login.microsoftonline.com/" + tenant + "/oauth2/v2.0/authorize",
231+
TokenURL: "https://login.microsoftonline.com/" + tenant + "/oauth2/v2.0/token",
232+
DeviceAuthURL: "https://login.microsoftonline.com/" + tenant + "/oauth2/v2.0/devicecode",
232233
}
233234
}
234235

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ module golang.org/x/oauth2
33
go 1.18
44

55
require (
6-
cloud.google.com/go/compute/metadata v0.2.3
6+
cloud.google.com/go/compute/metadata v0.3.0
77
github.com/google/go-cmp v0.5.9
88
)
9-
10-
require cloud.google.com/go/compute v1.20.1 // indirect

go.sum

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
cloud.google.com/go/compute v1.20.1 h1:6aKEtlUiwEpJzM001l0yFkpXmUVXaN8W+fbkb2AZNbg=
2-
cloud.google.com/go/compute v1.20.1/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM=
3-
cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY=
4-
cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA=
1+
cloud.google.com/go/compute/metadata v0.3.0 h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2QxYC4trgAKZc=
2+
cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k=
53
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
64
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=

microsoft/microsoft.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ func AzureADEndpoint(tenant string) oauth2.Endpoint {
2525
tenant = "common"
2626
}
2727
return oauth2.Endpoint{
28-
AuthURL: "https://login.microsoftonline.com/" + tenant + "/oauth2/v2.0/authorize",
29-
TokenURL: "https://login.microsoftonline.com/" + tenant + "/oauth2/v2.0/token",
28+
AuthURL: "https://login.microsoftonline.com/" + tenant + "/oauth2/v2.0/authorize",
29+
TokenURL: "https://login.microsoftonline.com/" + tenant + "/oauth2/v2.0/token",
30+
DeviceAuthURL: "https://login.microsoftonline.com/" + tenant + "/oauth2/v2.0/devicecode",
3031
}
3132
}

oauth2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ func ReuseTokenSource(t *Token, src TokenSource) TokenSource {
403403
}
404404
}
405405

406-
// ReuseTokenSource returns a TokenSource that acts in the same manner as the
406+
// ReuseTokenSourceWithExpiry returns a TokenSource that acts in the same manner as the
407407
// TokenSource returned by ReuseTokenSource, except the expiry buffer is
408408
// configurable. The expiration time of a token is calculated as
409409
// t.Expiry.Add(-earlyExpiry).

0 commit comments

Comments
 (0)