Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: golang/oauth2 Loading
base: v0.13.0
Choose a base ref
...
head repository: golang/oauth2 Loading
compare: v0.21.0
Choose a head ref
  • 20 commits
  • 39 files changed
  • 10 contributors

Commits on Oct 17, 2023

  1. google: adds header to security considerations section

    Change-Id: I29b93715876f233ae52687c8223fd8733a2a3b80
    GitHub-Last-Rev: f15c4cf
    GitHub-Pull-Request: #677
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/535895
    Reviewed-by: Cody Oss <[email protected]>
    Run-TryBot: Cody Oss <[email protected]>
    Reviewed-by: Alex Eitzman <[email protected]>
    Auto-Submit: Cody Oss <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    lsirac authored and gopherbot committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    4c91c17 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2023

  1. go.mod: update golang.org/x dependencies

    Update golang.org/x dependencies to their latest tagged versions.
    
    Change-Id: Id1413f67816220ef8039fb933088f4b7f50d70e5
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/540817
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Auto-Submit: Gopher Robot <[email protected]>
    Reviewed-by: Heschi Kreinick <[email protected]>
    gopherbot committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    e067960 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2023

  1. go.mod: update golang.org/x dependencies

    Update golang.org/x dependencies to their latest tagged versions.
    
    Change-Id: Iad79e50dacd89c4cd0a40d966a1a7ba4cdc3d1a4
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/545176
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Carlos Amedee <[email protected]>
    Auto-Submit: Gopher Robot <[email protected]>
    gopherbot committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    6e9ec93 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2024

  1. google: add UniverseDomain to CredentialsParams

    Change-Id: I7925b8341e1f047d0115acd7a01a34679a489ee0
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/552716
    Reviewed-by: Cody Oss <[email protected]>
    Run-TryBot: Cody Oss <[email protected]>
    Reviewed-by: Viacheslav Rostovtsev <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    quartzmo authored and codyoss committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    1e6999b View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2024

  1. google: add Credentials.GetUniverseDomain with GCE MDS support

    * Deprecate Credentials.UniverseDomain
    
    Change-Id: I1cbc842fbfce35540c8dff99fec09e036b9e2cdf
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/554215
    TryBot-Result: Gopher Robot <[email protected]>
    Run-TryBot: Cody Oss <[email protected]>
    Auto-Submit: Cody Oss <[email protected]>
    Reviewed-by: Cody Oss <[email protected]>
    Reviewed-by: Viacheslav Rostovtsev <[email protected]>
    quartzmo authored and gopherbot committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    4ce7bbb View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2024

  1. go.mod: update golang.org/x dependencies

    Update golang.org/x dependencies to their latest tagged versions.
    
    Change-Id: Icf68cb33585a13df206afacdb79832ea76f82346
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/554676
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Than McIntosh <[email protected]>
    Auto-Submit: Gopher Robot <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    gopherbot committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    39adbb7 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2024

  1. google/downscope: add DownscopingConfig.UniverseDomain to support TPC

    Change-Id: I3669352b382414ea640ca176afa4071995fc5ff1
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/557135
    Reviewed-by: Cody Oss <[email protected]>
    TryBot-Bypass: Cody Oss <[email protected]>
    Auto-Submit: Cody Oss <[email protected]>
    quartzmo authored and gopherbot committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    deefa7e View commit details
    Browse the repository at this point in the history
  2. google/internal/externalaccount: update serviceAccountImpersonationRE…

    … to support universe domain
    
    Change-Id: Iafe35c293209bd88997c876341ebde7ac9ecda93
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/557195
    TryBot-Bypass: Cody Oss <[email protected]>
    Reviewed-by: Cody Oss <[email protected]>
    Auto-Submit: Cody Oss <[email protected]>
    quartzmo authored and gopherbot committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    adffd94 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2024

  1. go.mod: update golang.org/x dependencies

    Update golang.org/x dependencies to their latest tagged versions.
    
    Change-Id: I8228a126b322fb14250bbb5933199ce45e8584d3
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/562496
    Reviewed-by: Than McIntosh <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Auto-Submit: Gopher Robot <[email protected]>
    gopherbot committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    ebe81ad View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2024

  1. google/externalaccount: moves externalaccount package out of internal…

    … and exports it
    
    go/programmable-auth-design for context. Adds support for user defined
     supplier methods to return subject tokens and AWS security credentials.
    
    Change-Id: I7bc41f8c5202ae933fce516632f5049bbeb3d378
    GitHub-Last-Rev: ac519b2
    GitHub-Pull-Request: #690
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/550835
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Leo Siracusa <[email protected]>
    Reviewed-by: Chris Smith <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Reviewed-by: Cody Oss <[email protected]>
    aeitzman authored and codyoss committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    95bec95 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2024

  1. google/externalaccount: add Config.UniverseDomain

    Change-Id: Ia1caee246da68c01addd06e1367ed1e43645826b
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/568216
    Reviewed-by: Alex Eitzman <[email protected]>
    Reviewed-by: Cody Oss <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    quartzmo authored and codyoss committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    34a7afa View commit details
    Browse the repository at this point in the history
  2. go.mod: update golang.org/x dependencies

    Update golang.org/x dependencies to their latest tagged versions.
    
    Change-Id: I993c77edbea8426f558ab84c4ba769e0bdf6406d
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/568935
    Reviewed-by: Than McIntosh <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Auto-Submit: Gopher Robot <[email protected]>
    Reviewed-by: Michael Knyszek <[email protected]>
    gopherbot committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    85231f9 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2024

  1. appengine: drop obsolete code for AppEngine envs <=Go 1.11

    This library no longer builds on Go versions prior to Go 1.17,
    so no longer needs to support compilation specific to AppEngine
    environments on Go versions prior to Go 1.11
    
    Related to #615
    
    Change-Id: Ia9579ea2091cb86ee96065affb920370c4ba33ea
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/570595
    Reviewed-by: Matt Hickford <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Cody Oss <[email protected]>
    Run-TryBot: Matt Hickford <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    liggitt authored and hickford committed Mar 11, 2024
    1 Configuration menu
    Copy the full SHA
    3a6776a View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2024

  1. oauth2/google: fix remove content-type header from idms get requests

    This is a fix on the googleapis/google-cloud-go#9508.
    The aws provider in that library is a ported dependency from here.
    
    Change-Id: I28e1efa4fdb8292210b695a164a55060c83dae88
    GitHub-Last-Rev: c425f2d
    GitHub-Pull-Request: #711
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/570875
    Reviewed-by: Cody Oss <[email protected]>
    Reviewed-by: Chris Smith <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    BigTailWolf authored and codyoss committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    5a05c65 View commit details
    Browse the repository at this point in the history
  2. oauth2/google: fix the logic of sts 0 value of expires_in

    The sts response contains an optional field of `expires_in` and the value can be any integer.
    
    https://github.com/golang/oauth2/blob/master/google/internal/externalaccount/basecredentials.go#L246-L248
    
    In the case of less than `0`, we are going to throw an error. But in the case of equals to `0` practically it means "never expire" instead of "instantly expire" which doesn't make sense.
    
    So we need to not set the expiration value for Token object. The current else if greater or equal is wrong.
    
    It's never triggered only because we are sending positive `3600` in sts response.
    
    Change-Id: Id227ca71130855235572b65ab178681e80d0da3a
    GitHub-Last-Rev: a95c923
    GitHub-Pull-Request: #687
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/545895
    Reviewed-by: Shin Fan <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Auto-Submit: Cody Oss <[email protected]>
    Reviewed-by: Cody Oss <[email protected]>
    BigTailWolf authored and gopherbot committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    3c9c1f6 View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2024

  1. google: add Credentials.UniverseDomainProvider

    * move MDS universe retrieval within Compute credentials
    
    Change-Id: I847d2075ca11bde998a06220307626e902230c23
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/575936
    Reviewed-by: Cody Oss <[email protected]>
    Auto-Submit: Cody Oss <[email protected]>
    Run-TryBot: Cody Oss <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    quartzmo authored and gopherbot committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    d0e617c View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2024

  1. microsoft: added DeviceAuthURL to AzureADEndpoint

    The Microsoft identity platform supports the device authorization grant:
    
    https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-device-code
    
    This PR adds the "https://login.microsoftonline.com/{tenant}/oauth2/v2.0/devicecode" DeviceAuthURL to the AzureADEndpoint.
    
    Fixes #700
    
    Change-Id: I8ca571391e0e0f4d383e3f2f07a66b26edcb4679
    GitHub-Last-Rev: 2b953c3
    GitHub-Pull-Request: #701
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/564315
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Matt Hickford <[email protected]>
    Run-TryBot: Matt Hickford <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Reviewed-by: Than McIntosh <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    enrichman authored and hickford committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    e11eea8 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2024

  1. go.mod: update cloud.google.com/go/compute/metadata dependency

    Related #615
    Related googleapis/google-cloud-go#9545
    
    Change-Id: I762dc53c61204ec5103336dab6358b9b4d1337d4
    GitHub-Last-Rev: 439c393
    GitHub-Pull-Request: #719
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/579495
    Reviewed-by: Cody Oss <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Run-TryBot: Cody Oss <[email protected]>
    Reviewed-by: Jordan Liggitt <[email protected]>
    sagikazarmark authored and codyoss committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    4b7f0bd View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2024

  1. oauth2: fix typo in comment

    Change-Id: Ifc12ed36671d21e388c537c510a82be084e9ec99
    GitHub-Last-Rev: a4da759
    GitHub-Pull-Request: #720
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/580715
    TryBot-Bypass: Cody Oss <[email protected]>
    Reviewed-by: Cody Oss <[email protected]>
    Reviewed-by: Joedian Reid <[email protected]>
    testwill authored and codyoss committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    84cb9f7 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2024

  1. google: update compute token refresh

    The shortest MDS token cache time is 4 minutes. The refresh window is updated
    to 3 minutes and 45 seconds to give the MDS time to update it's cache.
    
    This should make slow refreshes less likely to cause failures.
    
    Done in googleapis/google-cloud-go#9139 for the other auth library.
    
    Change-Id: Ifa353248197d8998e6b0363d1f2821b45a0e6495
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/584815
    Auto-Submit: Cody Oss <[email protected]>
    TryBot-Bypass: Cody Oss <[email protected]>
    Run-TryBot: Cody Oss <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Reviewed-by: Cody Oss <[email protected]>
    clundin25 authored and gopherbot committed May 10, 2024
    Configuration menu
    Copy the full SHA
    5fd4241 View commit details
    Browse the repository at this point in the history
Loading