Skip to content

feat(auth): implement browser-based Google OAuth flow#13523

Closed
alex-v08 wants to merge 3 commits intoanomalyco:devfrom
alex-v08:feature/google-oauth-browser
Closed

feat(auth): implement browser-based Google OAuth flow#13523
alex-v08 wants to merge 3 commits intoanomalyco:devfrom
alex-v08:feature/google-oauth-browser

Conversation

@alex-v08
Copy link

Adds support for web-based OAuth 2.0 flow for Google authentication, allowing users to login via browser instead of manually exchanging codes.

Changes

  • Backend: Added /auth/google/browser endpoint and callback handler.
  • Frontend: Added 'Login with Browser' button.
  • CLI: Updated auth command.

This improves security and user experience.

@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search results, here are the potentially related PRs (excluding the current PR #13523):

Related PRs:

  1. #6260 - "fix: merge auth methods from multiple plugins for the same provider"

    • Related to auth provider handling and multiple authentication methods
  2. #7765 - "feat: add OpenRouter OAuth PKCE authentication"

    • Similar OAuth implementation with browser-based flow and PKCE authentication
  3. #8039 - "feat: integrate gemini through the same login flow as gemini cli"

    • Related to integrating OAuth-based login flows
  4. #8536 - "feat(openai-oauth) OpenAI OAuth multi account support"

    • Similar OAuth implementation for multi-account support
  5. #5781 - "fix: use localhost instead of 127.0.0.1 for OAuth callback"

    • Related to OAuth callback handling

These PRs deal with similar OAuth authentication flows and provider integrations. However, they appear to be for different providers (OpenRouter, Gemini, OpenAI) rather than Google specifically, so they're likely complementary rather than direct duplicates. The most related is likely #7765 as it implements a similar browser-based OAuth flow pattern.

Adds support for web-based OAuth 2.0 flow for Google authentication, allowing users to login via browser instead of manually exchanging codes. Improves security and user experience by handling the token exchange automatically with a local callback server.
@alex-v08 alex-v08 force-pushed the feature/google-oauth-browser branch from d421abf to a1d5c50 Compare February 13, 2026 20:15
- revert toolcall default to true for compatibility
- add timeout to ollama discovery fetch
- disable ollama check in e2e tests via env var
- add timeout and improve error handling in google auth server
- bind google auth server to 127.0.0.1 explicitly
Fixes dependency resolution issues in isolated .opencode environments on Windows CI, where the workspace catalog is not reachable.
@alex-v08 alex-v08 closed this Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant