Skip to content

Add opt-in strict Google OAuth resource authorization - #223

Open
ctate wants to merge 15 commits into
mainfrom
ctate/fix-google-enforce-oauth-authority-in-strict-mod-3a173c2b
Open

Add opt-in strict Google OAuth resource authorization#223
ctate wants to merge 15 commits into
mainfrom
ctate/fix-google-enforce-oauth-authority-in-strict-mod-3a173c2b

Conversation

@ctate

@ctate ctate commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds opt-in strict authorization for Google resource APIs while preserving the existing permissive fallback by default.

  • Persist OAuth access-token records with issuing identity, client, granted scopes, one-hour expiry, and revocation state, including refreshed tokens and store snapshots.
  • Protect userinfo, Gmail, Calendar, Drive, and upload aliases when google.strict_scopes: true. Require active emulator-issued access tokens, enforce endpoint-specific scope alternatives, and return Google-compatible 401 UNAUTHENTICATED or 403 PERMISSION_DENIED responses.
  • Synchronize the option and behavior across the example config, CLI help, README, web documentation, package documentation, and service skills.

This gives integrations production-like credential and permission behavior when needed without breaking existing local workflows that use arbitrary bearer tokens.

ctate and others added 15 commits September 3, 2026 03:05
Co-authored-by: ikatkov <1211343+ikatkov@users.noreply.github.com>
Co-authored-by: ikatkov <1211343+ikatkov@users.noreply.github.com>
Co-authored-by: ikatkov <1211343+ikatkov@users.noreply.github.com>
Co-authored-by: ikatkov <1211343+ikatkov@users.noreply.github.com>
Co-authored-by: ikatkov <1211343+ikatkov@users.noreply.github.com>
Co-authored-by: ikatkov <1211343+ikatkov@users.noreply.github.com>
Co-authored-by: ikatkov <1211343+ikatkov@users.noreply.github.com>
Co-authored-by: ikatkov <1211343+ikatkov@users.noreply.github.com>
Co-authored-by: ikatkov <1211343+ikatkov@users.noreply.github.com>
Co-authored-by: ikatkov <1211343+ikatkov@users.noreply.github.com>
Co-authored-by: ikatkov <1211343+ikatkov@users.noreply.github.com>
Co-authored-by: ikatkov <1211343+ikatkov@users.noreply.github.com>
Co-authored-by: ikatkov <1211343+ikatkov@users.noreply.github.com>
Co-authored-by: ikatkov <1211343+ikatkov@users.noreply.github.com>
Co-authored-by: ikatkov <1211343+ikatkov@users.noreply.github.com>
@vercel

vercel Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
emulate Ready Ready Preview, v0 Sep 3, 2026 8:06am UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant