Skip to content

fix google oauth token routing - #457

Open
erichanwang wants to merge 1 commit into
onecli:mainfrom
erichanwang:fix/google-oauth-token-routing
Open

fix google oauth token routing#457
erichanwang wants to merge 1 commit into
onecli:mainfrom
erichanwang:fix/google-oauth-token-routing

Conversation

@erichanwang

@erichanwang erichanwang commented Jul 28, 2026

Copy link
Copy Markdown

fixes #307

changes

  • share the oauth2.googleapis.com/token intercept rule across Google OAuth app providers
  • keep the token endpoint as an intercept target instead of routing all refreshes through Vertex AI
  • add regression coverage for Google Calendar and shared Google OAuth token routing

verification

  • cargo fmt --manifest-path apps/gateway/Cargo.toml --check
  • cargo test --manifest-path apps/gateway/Cargo.toml google_calendar_produces_token_intercept_rule
  • cargo test --manifest-path apps/gateway/Cargo.toml oauth2_token_endpoint_maps_to_google_oauth_apps
  • cargo test --manifest-path apps/gateway/Cargo.toml oauth2
  • cargo test --manifest-path apps/gateway/Cargo.toml intercept_token_comes_from_app_rules_only
  • pnpm check
  • pnpm build
  • git diff --check

@erichanwang
erichanwang force-pushed the fix/google-oauth-token-routing branch from 7e2a366 to d4f989e Compare July 30, 2026 20:10
@erichanwang
erichanwang marked this pull request as ready for review July 30, 2026 21:19
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.

oauth2.googleapis.com/token misrouted to vertex-ai for non-Vertex Google providers

1 participant