mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[GH-ISSUE #20140] issue: Google OAuth Callback Handler Not Processing Authorization Codes #138824
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vavenpuneet01-collab on GitHub (Dec 23, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20140
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.37 to v0.6.43
Ollama Version (if applicable)
Using OpenRouter API, not Ollama
Operating System
Ubuntu24
Browser (if applicable)
Chrome or Chrome/Edge or Any browser
Confirmation
README.md.Expected Behavior
After Google redirects back with authorization code, the callback handler should:
Actual Behavior
The callback handler receives valid authorization codes from Google but returns HTTP 200 with HTML (login page) instead of processing the OAuth flow.
Steps to Reproduce
Logs & Screenshots
Logs:
2025-12-23 12:32:07.442 | INFO | "GET /oauth/google/login HTTP/1.1" 302
2025-12-23 12:32:11.592 | INFO | "GET /oauth/callback/google?state=&code=&scope=email+profile+... HTTP/1.1" 200
Database Check:
API Config Response:
Network Request Flow:
→ 200 OK → Returns HTML (login page) ❌Note: No error messages appear in logs despite DEBUG logging enabled. The callback handler receives valid authorization codes but fails silently.
Network Request Flow:
GET /oauth/google/login → 302 Found → Redirects to Google OAuth ✅
Google authentication → User signs in ✅
GET /oauth/callback/google?state=&code=
→ 200 OK → Returns HTML (login page) ❌Browser redirected to /auth?redirect=%2Foauth%2Fcallback%2Fgoogle%3Fstate%3D ❌
Note: No error messages appear in logs despite DEBUG logging enabled. The callback handler receives valid authorization codes but fails silently.
Additional Information
Configuration
Environment Variables Set:
Google Cloud Console Configuration:
Debugging Attempts
Additional Details
Impact
Related Issues
This issue appears related to:
Request
Please investigate why:
@owui-terminator[bot] commented on GitHub (Dec 23, 2025):
🔍 Similar Issues Found
I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:
#19823 Issue: Auth 2.1 Authorization/Token retrival is broken in v0.6.41
by mllab-nl • Dec 08, 2025 •
bug#19792 issue: OAuth Login redirects to https://openwebui.domain.org/oauth/oidc/openwebui.domain.org after succesful login
by StNiosem • Dec 06, 2025 •
bug#16512 Issue: Google OAuth - after confirming the account redirected to the auth page
by dmytropoltorak • Aug 12, 2025 •
bug#19148 issue: Verify OAuth mcp server sends incorrect authorization header
by Oleg52 • Nov 12, 2025 •
bug#12057 issue: Google oauth redirect does not work
by frenzybiscuit • Mar 25, 2025 •
bugShow 5 more related issues
#12581 issue: Error Logout with Google Oauth
by mballesterosc • Apr 07, 2025 •
bug#15551 issue: OAuth Role Management Ignored: OAUTH_ALLOWED_ROLES and OAUTH_ADMIN_ROLES Not Applied on OIDC Login
by Hani-K • Jul 06, 2025 •
bug#3552 Google OAuth authentication fails
by m8i-51 • Jun 30, 2024
#5340 Can't make Google Oauth work
by nick-fullpath • Sep 11, 2024
#19131 issue: client_id parameter is not passed in authorize access token request with OIDC provider
by Oleg52 • Nov 12, 2025 •
bug💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.