mcp-context-forge
mcp-context-forge copied to clipboard
[BUG]: Login redirect loop
🐞 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
- Set
MCP_CLIENT_AUTH_ENABLEDtofalse - Access the admin UI
- Open the browser network tab
- Login
- Watch the browser network tab
🤔 Expected Behavior
The user gets loggged in.