File tree Expand file tree Collapse file tree 5 files changed +12
-14
lines changed
Expand file tree Collapse file tree 5 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ var GitLab = oauth2.Endpoint{
6868
6969// Google is the endpoint for Google.
7070var 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
Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ module golang.org/x/oauth2
33go 1.18
44
55require (
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
Original file line number Diff line number Diff line change 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 =
53github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38 =
64github.com/google/go-cmp v0.5.9 /go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY =
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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).
You can’t perform that action at this time.
0 commit comments