mcp-context-forge icon indicating copy to clipboard operation
mcp-context-forge copied to clipboard

[BUG]: Login redirect loop

Open gcgoncalves opened this issue 5 months ago • 0 comments

🐞 Bug Summary

When the MCP_CLIENT_AUTH_ENABLED flag is set to false, logging into the admin UI goes into an infinite redirect loop between /admin and /admin/login.


🧩 Affected Component

Select the area of the project impacted:

  • [ ] mcpgateway - API
  • [X] mcpgateway - UI (admin panel)
  • [ ] mcpgateway.wrapper - stdio wrapper
  • [ ] Federation or Transports
  • [ ] CLI, Makefiles, or shell scripts
  • [ ] Container setup (Docker/Podman/Compose)
  • [ ] Other (explain below)

🔁 Steps to Reproduce

  1. Set MCP_CLIENT_AUTH_ENABLED to false
  2. Access the admin UI
  3. Open the browser network tab
  4. Login
  5. Watch the browser network tab

🤔 Expected Behavior

The user gets loggged in.

gcgoncalves avatar Jun 11 '26 14:06 gcgoncalves