chore(deps): update dependency omniauth-google-oauth2 to v1.2.3 #9

Merged
hobbypunk merged 1 commit from renovate/omniauth-google-oauth2-1.x-lockfile into main 2026-09-27 13:46:46 +00:00
Collaborator

This PR contains the following updates:

Package Update Change
omniauth-google-oauth2 patch 1.2.2 → 1.2.3

Release Notes

zquestz/omniauth-google-oauth2 (omniauth-google-oauth2)

v1.2.3

Compare Source

Security
  • Verify caller-supplied ID tokens against Google's published signing keys before trusting them. An ID token sent alongside a direct access_token callback was previously decoded without checking its signature, so extra.id_info and extra.id_token could be populated from a forged token. uid and info were never affected, as they come from the userinfo endpoint. A caller-supplied ID token genuinely issued by Google for the same user and a trusted client continues to be accepted after verification.
  • Require a caller-supplied ID token to describe the same user as the access token it was sent with, by comparing the token's sub against the userinfo subject. A verified signature only proves Google issued the token, not that it belongs to the person the access token identifies, so without this a genuine ID token for one user could be paired with an access token for another and leave uid and extra.id_info describing different people. The at_hash claim is checked first as a fast path, and this subject check settles the cases at_hash cannot: tokens that omit the claim, and tokens whose at_hash is stale because the client refreshed its access token after sign-in. This check runs even when skip_info is set, as that option trims the auth hash rather than waiving verification.
  • The bundled example app no longer disables TLS certificate verification. Anyone who copied that line into an application should remove it: it turns off certificate checking for every Faraday-based request in the process, not just the ones this gem makes.
Added
  • reset_jwks_cache! for clearing the cached Google signing keys between tests.
  • cached_jwks, the class-level fetch-and-cache primitive behind it, which takes the fetch itself as a block.
  • JWKS_URL, JWKS_CACHE_TTL, and JWKS_RETRY_INTERVAL constants, and a JwksUnavailable error.
  • An upper bound of < 4 on the jwt dependency. This is precautionary rather than a response to a released version: it keeps a future major release from being picked up before it has been verified against this strategy.
Deprecated
  • Nothing.
Removed
  • The fallback that placed the opaque access token in extra.id_token when no ID token was present. extra.id_token is now absent in that case rather than holding a value that was never an ID token. This was only reachable with skip_jwt set; without it the fallback raised instead.
Fixed
  • Ignore every credential field a caller supplies in a direct access-token callback apart from the access token itself and a verified ID token. refresh_token and token expiry in particular cannot be verified, so they are no longer carried through.
  • Avoid decoding opaque access tokens as JWTs when no ID token is available.
  • Fail with a normal authentication failure when a callback carries no usable credential, such as an ID token with no access token, a JSON body that is not an object, or an unparseable body. Previously these raised a NoMethodError or TypeError that OmniAuth turned into a failure whose message was the raw Ruby error, so applications received an unstable message parameter such as undefined method 'expired?' instead of invalid_credentials.
  • Serve the cached signing keys when Google's key endpoint is briefly unreachable, and back off before refetching, rather than retrying on every request, including when nothing is cached yet.
  • Reject a signing key response that is not an object with a keys array, rather than passing it on to be interpreted as some other kind of key.
  • Cap how often an ID token naming an unrecognised key can force a key refresh, so it cannot be used to drive unbounded outbound requests while holding the shared cache lock. Key rotation still resolves within JWKS_RETRY_INTERVAL.
  • jwt_leeway now also applies when verifying caller-supplied ID tokens, matching how it already behaved for the extra block.
  • Support non-rewindable JSON request bodies under Rack 3.
  • Accept ID tokens issued to any configured authorized_client_ids, matching the audiences already accepted for access tokens.
  • Reuse successfully verified ID token claims when building extra, so each ID token is decoded and validated only once per request.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Update | Change | |---|---|---| | [omniauth-google-oauth2](https://github.com/zquestz/omniauth-google-oauth2) | patch | `1.2.2` → `1.2.3` | --- ### Release Notes <details> <summary>zquestz/omniauth-google-oauth2 (omniauth-google-oauth2)</summary> ### [`v1.2.3`](https://github.com/zquestz/omniauth-google-oauth2/blob/HEAD/CHANGELOG.md#123---2026-08-31) [Compare Source](https://github.com/zquestz/omniauth-google-oauth2/compare/v1.2.2...v1.2.3) ##### Security - Verify caller-supplied ID tokens against Google's published signing keys before trusting them. An ID token sent alongside a direct `access_token` callback was previously decoded without checking its signature, so `extra.id_info` and `extra.id_token` could be populated from a forged token. `uid` and `info` were never affected, as they come from the userinfo endpoint. A caller-supplied ID token genuinely issued by Google for the same user and a trusted client continues to be accepted after verification. - Require a caller-supplied ID token to describe the same user as the access token it was sent with, by comparing the token's `sub` against the userinfo subject. A verified signature only proves Google issued the token, not that it belongs to the person the access token identifies, so without this a genuine ID token for one user could be paired with an access token for another and leave `uid` and `extra.id_info` describing different people. The `at_hash` claim is checked first as a fast path, and this subject check settles the cases `at_hash` cannot: tokens that omit the claim, and tokens whose `at_hash` is stale because the client refreshed its access token after sign-in. This check runs even when `skip_info` is set, as that option trims the auth hash rather than waiving verification. - The bundled example app no longer disables TLS certificate verification. Anyone who copied that line into an application should remove it: it turns off certificate checking for every Faraday-based request in the process, not just the ones this gem makes. ##### Added - `reset_jwks_cache!` for clearing the cached Google signing keys between tests. - `cached_jwks`, the class-level fetch-and-cache primitive behind it, which takes the fetch itself as a block. - `JWKS_URL`, `JWKS_CACHE_TTL`, and `JWKS_RETRY_INTERVAL` constants, and a `JwksUnavailable` error. - An upper bound of `< 4` on the `jwt` dependency. This is precautionary rather than a response to a released version: it keeps a future major release from being picked up before it has been verified against this strategy. ##### Deprecated - Nothing. ##### Removed - The fallback that placed the opaque access token in `extra.id_token` when no ID token was present. `extra.id_token` is now absent in that case rather than holding a value that was never an ID token. This was only reachable with `skip_jwt` set; without it the fallback raised instead. ##### Fixed - Ignore every credential field a caller supplies in a direct access-token callback apart from the access token itself and a verified ID token. `refresh_token` and token expiry in particular cannot be verified, so they are no longer carried through. - Avoid decoding opaque access tokens as JWTs when no ID token is available. - Fail with a normal authentication failure when a callback carries no usable credential, such as an ID token with no access token, a JSON body that is not an object, or an unparseable body. Previously these raised a `NoMethodError` or `TypeError` that OmniAuth turned into a failure whose message was the raw Ruby error, so applications received an unstable `message` parameter such as `undefined method 'expired?'` instead of `invalid_credentials`. - Serve the cached signing keys when Google's key endpoint is briefly unreachable, and back off before refetching, rather than retrying on every request, including when nothing is cached yet. - Reject a signing key response that is not an object with a `keys` array, rather than passing it on to be interpreted as some other kind of key. - Cap how often an ID token naming an unrecognised key can force a key refresh, so it cannot be used to drive unbounded outbound requests while holding the shared cache lock. Key rotation still resolves within `JWKS_RETRY_INTERVAL`. - `jwt_leeway` now also applies when verifying caller-supplied ID tokens, matching how it already behaved for the `extra` block. - Support non-rewindable JSON request bodies under Rack 3. - Accept ID tokens issued to any configured `authorized_client_ids`, matching the audiences already accepted for access tokens. - Reuse successfully verified ID token claims when building `extra`, so each ID token is decoded and validated only once per request. </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi45OS4wIiwidXBkYXRlZEluVmVyIjoiNDIuOTkuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
chore(deps): update dependency omniauth-google-oauth2 to v1.2.3
All checks were successful
CI / lint (pull_request) Successful in 2m55s
CI / scan_ruby (pull_request) Successful in 2m56s
CI / system-test (pull_request) Successful in 3m7s
CI / test (pull_request) Successful in 3m8s
6fd70e20bf
renovate force-pushed renovate/omniauth-google-oauth2-1.x-lockfile from 6fd70e20bf
All checks were successful
CI / lint (pull_request) Successful in 2m55s
CI / scan_ruby (pull_request) Successful in 2m56s
CI / system-test (pull_request) Successful in 3m7s
CI / test (pull_request) Successful in 3m8s
to f81e5a1b32
All checks were successful
CI / scan_ruby (pull_request) Successful in 6m26s
CI / lint (pull_request) Successful in 7m13s
CI / test (pull_request) Successful in 7m34s
CI / system-test (pull_request) Successful in 10m1s
CI / coverage (pull_request) Successful in 1m29s
2026-09-27 00:02:10 +00:00
Compare

📊 Coverage

Metrik Abdeckung
Zeilen 97.69% (2619/2681)
Branches 81.46% (637/782)
Methoden 96.71% (412/426)

Patch-Coverage: keine getrackten Zeilen geändert

Schwächste Dateien im Projekt

Datei Abdeckung
app/models/concerns/has_uuid_v7.rb 54.55%
app/components/form/select.rb 72.41%
app/components/layout/flash.rb 84.0%
app/components/concerns/actionable.rb 86.67%
app/components/layout/sidebar.rb 89.47%
app/controllers/settings/security_controller.rb 90.24%
app/controllers/sessions_controller.rb 90.32%
app/components/concerns/inferrable.rb 90.63%
app/components/users/avatar.rb 91.23%
app/controllers/settings/security/otps_controller.rb 91.67%

🔍 Report im Browser ansehen · 📄 Run-Artifact „coverage-report“

<!-- coverage-report --> ## 📊 Coverage | Metrik | Abdeckung | |---|---| | Zeilen | 97.69% (2619/2681) | | Branches | 81.46% (637/782) | | Methoden | 96.71% (412/426) | **Patch-Coverage**: keine getrackten Zeilen geändert **Schwächste Dateien im Projekt** | Datei | Abdeckung | |---|---| | app/models/concerns/has_uuid_v7.rb | 54.55% | | app/components/form/select.rb | 72.41% | | app/components/layout/flash.rb | 84.0% | | app/components/concerns/actionable.rb | 86.67% | | app/components/layout/sidebar.rb | 89.47% | | app/controllers/settings/security_controller.rb | 90.24% | | app/controllers/sessions_controller.rb | 90.32% | | app/components/concerns/inferrable.rb | 90.63% | | app/components/users/avatar.rb | 91.23% | | app/controllers/settings/security/otps_controller.rb | 91.67% | [🔍 Report im Browser ansehen](https://pages.hoppe-dev.eu/hobbypunk/rails-base_app/pr-9/coverage) · [📄 Run-Artifact „coverage-report“](https://code.hoppe-dev.eu/hobbypunk/rails-base_app/actions/runs/1487/artifacts/coverage-report)
Merge branch 'main' into renovate/omniauth-google-oauth2-1.x-lockfile
All checks were successful
CI / lint (pull_request) Successful in 3m34s
CI / scan_ruby (pull_request) Successful in 3m43s
CI / test (pull_request) Successful in 4m43s
CI / system-test (pull_request) Successful in 4m47s
CI / coverage (pull_request) Successful in 33s
70e47c0120
renovate force-pushed renovate/omniauth-google-oauth2-1.x-lockfile from 70e47c0120
All checks were successful
CI / lint (pull_request) Successful in 3m34s
CI / scan_ruby (pull_request) Successful in 3m43s
CI / test (pull_request) Successful in 4m43s
CI / system-test (pull_request) Successful in 4m47s
CI / coverage (pull_request) Successful in 33s
to f2bb5a7d62
All checks were successful
CI / scan_ruby (pull_request) Successful in 1m35s
CI / lint (pull_request) Successful in 1m38s
CI / system-test (pull_request) Successful in 3m14s
CI / test (pull_request) Successful in 3m16s
CI / coverage (pull_request) Successful in 1m38s
2026-09-27 13:35:12 +00:00
Compare
hobbypunk deleted branch renovate/omniauth-google-oauth2-1.x-lockfile 2026-09-27 13:46:47 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
hobbypunk/rails-base_app!9
No description provided.