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
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.16.0
Choose a base ref
...
head repository: golang/oauth2
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.23.0
Choose a head ref
  • 18 commits
  • 42 files changed
  • 13 contributors

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 <codyoss@google.com>
    TryBot-Bypass: Cody Oss <codyoss@google.com>
    Auto-Submit: Cody Oss <codyoss@google.com>
    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 <codyoss@google.com>
    Reviewed-by: Cody Oss <codyoss@google.com>
    Auto-Submit: Cody Oss <codyoss@google.com>
    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 <thanm@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Auto-Submit: Gopher Robot <gobot@golang.org>
    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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Leo Siracusa <leosiracusa@google.com>
    Reviewed-by: Chris Smith <chrisdsmith@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Cody Oss <codyoss@google.com>
    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 <eitzman@google.com>
    Reviewed-by: Cody Oss <codyoss@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    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 <thanm@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Auto-Submit: Gopher Robot <gobot@golang.org>
    Reviewed-by: Michael Knyszek <mknyszek@google.com>
    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 <matt.hickford@gmail.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Cody Oss <codyoss@google.com>
    Run-TryBot: Matt Hickford <matt.hickford@gmail.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    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 <codyoss@google.com>
    Reviewed-by: Chris Smith <chrisdsmith@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    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 <shinfan@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Auto-Submit: Cody Oss <codyoss@google.com>
    Reviewed-by: Cody Oss <codyoss@google.com>
    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 <codyoss@google.com>
    Auto-Submit: Cody Oss <codyoss@google.com>
    Run-TryBot: Cody Oss <codyoss@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    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 <dmitshur@google.com>
    Reviewed-by: Matt Hickford <matt.hickford@gmail.com>
    Run-TryBot: Matt Hickford <matt.hickford@gmail.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Than McIntosh <thanm@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    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 <codyoss@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Run-TryBot: Cody Oss <codyoss@google.com>
    Reviewed-by: Jordan Liggitt <liggitt@google.com>
    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 <codyoss@google.com>
    Reviewed-by: Cody Oss <codyoss@google.com>
    Reviewed-by: Joedian Reid <joedian@google.com>
    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 <codyoss@google.com>
    TryBot-Bypass: Cody Oss <codyoss@google.com>
    Run-TryBot: Cody Oss <codyoss@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Cody Oss <codyoss@google.com>
    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

Commits on Jul 16, 2024

  1. LICENSE: update per Google Legal

    Very minor tweaks:
     - Remove (c) pseudosymbol.
     - Remove "All Rights Reserved."
     - Change "Google Inc." (no longer exists) to "Google LLC".
    
    [git-generate]
    echo '
    ,s/\(c\) //
    ,s/ All rights reserved.//
    ,s/Google Inc./Google LLC/
    w
    q
    ' | sam -d LICENSE
    
    Change-Id: I75efc3e2705b75748034e46a093bb71cb40eee5b
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/598580
    Auto-Submit: Russ Cox <rsc@golang.org>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    rsc authored and gopherbot committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    6d8340f View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2024

  1. endpoints: add GitLab DeviceAuthURL

    See GitLab documentation https://docs.gitlab.com/ee/api/oauth2.html#device-authorization-grant-flow.
    
    Change-Id: Ideffbfcb67e0b25251a0b18148e57eab43124d37
    GitHub-Last-Rev: 6ecd45e
    GitHub-Pull-Request: #733
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/600095
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Run-TryBot: Matt Hickford <matt.hickford@gmail.com>
    Reviewed-by: Matt Hickford <matt.hickford@gmail.com>
    Reviewed-by: Michael Knyszek <mknyszek@google.com>
    Reviewed-by: David Chase <drchase@google.com>
    TryBot-Bypass: Matt Hickford <matt.hickford@gmail.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    hickford committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    b52af7d View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2024

  1. jwt: rename example to avoid vet error

    After CL 603476 we were getting
    
    jwt/example_test.go:13:1: ExampleJWTConfig refers to unknown identifier: JWTConfig
    
    Change-Id: I51bcd06a50a852150eb6e42743431207ee00300f
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/606878
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    Auto-Submit: Ian Lance Taylor <iant@golang.org>
    Reviewed-by: Alan Donovan <adonovan@google.com>
    ianlancetaylor authored and gopherbot committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    16a9973 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2024

  1. x/oauth2: add Token.ExpiresIn

    Fixes golang/go#61417
    
    Change-Id: Ib8599f39b4839bf6eed021217350195ad36d1631
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/605955
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    andig authored and gopherbot committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    3e64809 View commit details
    Browse the repository at this point in the history
Loading