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.20.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.27.0
Choose a head ref
  • 13 commits
  • 15 files changed
  • 12 contributors

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

Commits on Nov 1, 2024

  1. README: don't recommend go get

    These days people will just import the packages and the go tool will
    do the right thing. We don't need to explain it.
    
    Add a pointer to the git repo, though.
    
    For golang/go#62645
    
    Change-Id: Ib6a6fb8989df8071b20d50de446d05b270c1f1ae
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/624195
    Commit-Queue: Ian Lance Taylor <iant@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Cody Oss <codyoss@google.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    ianlancetaylor authored and gopherbot committed Nov 1, 2024
    Configuration menu
    Copy the full SHA
    22134a4 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2025

  1. all: make method and struct comments match the names

    Change-Id: I9fd025393acc12da59fdac1c416563324cd26af1
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/639695
    Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    cuishuang authored and gopherbot committed Jan 4, 2025
    Configuration menu
    Copy the full SHA
    49a531d View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2025

  1. google: add warning about externally-provided credentials

    Change-Id: Ic2ce6e9c3ed735f4fc6d78a22cf0d5e95fca91a1
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/643158
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Sai Sunder Srinivasan <saisunder@google.com>
    Run-TryBot: Cody Oss <codyoss@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Cody Oss <codyoss@google.com>
    quartzmo authored and codyoss committed Jan 29, 2025
    Configuration menu
    Copy the full SHA
    b9c813b View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2025

  1. endpoints: add patreon endpoint

    Adds the patreon endpoints from their documentation.
    
    https://docs.patreon.com/#oauth.
    
    I've tested these thoroughly whilst making a pr to pocketbase.
    
    pocketbase/pocketbase#3323.
    
    Change-Id: I023871a4340ee4ebcba9fd808d4a8f0c081fc10e
    GitHub-Last-Rev: 890ef05
    GitHub-Pull-Request: #668
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/528640
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    Reviewed-by: Carlos Amedee <carlos@golang.org>
    Reviewed-by: Jorropo <jorropo.pgm@gmail.com>
    Auto-Submit: Jorropo <jorropo.pgm@gmail.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    ghostdevv authored and gopherbot committed Feb 6, 2025
    Configuration menu
    Copy the full SHA
    314ee5b View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2025

  1. oauth2: fix docs for Config.DeviceAuth

    Config.DeviceAccess should be Config.DeviceAuth when using GenerateVerifier() or S256ChallengeOption()
    
    Change-Id: Ie21a808387f731d270ae54ea1705de3e786cad7f
    GitHub-Last-Rev: 2d6b4fd
    GitHub-Pull-Request: #763
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/636216
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Auto-Submit: Jorropo <jorropo.pgm@gmail.com>
    Reviewed-by: Jorropo <jorropo.pgm@gmail.com>
    eest authored and gopherbot committed Feb 13, 2025
    Configuration menu
    Copy the full SHA
    ac571fa View commit details
    Browse the repository at this point in the history
  2. endpoints: add links/provider for Discord

    Endpoints are provided from
    https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-urls.
    
    Change-Id: I7bcc8b4cb5527959acb8f177ffb8bbafbe727e82
    GitHub-Last-Rev: 6869fc3
    GitHub-Pull-Request: #768
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/649115
    Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    hhhapz authored and gopherbot committed Feb 13, 2025
    Configuration menu
    Copy the full SHA
    109dabf View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2025

  1. all: upgrade go directive to at least 1.23.0 [generated]

    By now Go 1.24.0 has been released, and Go 1.22 is no longer supported
    per the Go Release Policy (https://go.dev/doc/devel/release#policy).
    
    For golang/go#69095.
    
    [git-generate]
    (cd . && go get go@1.23.0 && go mod tidy && go fix ./... && go mod edit -toolchain=none)
    
    Change-Id: I718ce0afa60729aeb89396db2b559faf03b90a68
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/649795
    Auto-Submit: Gopher Robot <gobot@golang.org>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    gopherbot committed Feb 14, 2025
    Configuration menu
    Copy the full SHA
    3f78298 View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2025

  1. jws: split token into fixed number of parts

    Thanks to 'jub0bs' for reporting this issue.
    
    Fixes #71490
    Fixes CVE-2025-22868
    
    Change-Id: I2552731f46d4907f29aafe7863c558387b6bd6e2
    Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/652155
    Auto-Submit: Gopher Robot <gobot@golang.org>
    Reviewed-by: Damien Neil <dneil@google.com>
    Reviewed-by: Roland Shoemaker <roland@golang.org>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    thatnealpatel authored and gopherbot committed Feb 24, 2025
    Configuration menu
    Copy the full SHA
    681b4d8 View commit details
    Browse the repository at this point in the history
Loading