mirror of
https://github.com/moghtech/komodo.git
synced 2026-05-07 02:16:06 -05:00
[GH-ISSUE #749] OIDC Frontend JavaScript Bug: Incorrect Authorization URL Construction with Microsoft Entra ID #5119
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 @brandonleegit on GitHub (Aug 20, 2025).
Original GitHub issue: https://github.com/moghtech/komodo/issues/749
Environment
Description
The OIDC login frontend is constructing incorrect authorization URLs by mixing the
KOMODO_HOSTwith parts of the OIDC provider URL, causing authentication failures with Microsoft Entra ID.Expected Behavior
When clicking the OIDC button, the browser should redirect to:
Actual Behavior
The browser redirects to this malformed URL instead:
Notice how the hostname is
[MY-KOMODO-HOST](my KOMODO_HOST) instead oflogin.microsoftonline.com.Configuration
OIDC Configuration (tried both approaches):
Environment Variables:
TOML Config File:
Backend Logs (Successful OIDC Initialization)
No backend errors - the OIDC client initializes successfully.
Steps to Reproduce
Additional Context
Verification
I verified Microsoft's OIDC endpoint returns the correct authorization endpoint:
Impact
This bug prevents OIDC authentication with Microsoft Entra ID, which is a common enterprise identity provider.
Potential Root Cause
The frontend JavaScript appears to be incorrectly using the
KOMODO_HOSTas the base URL instead of the OIDC provider's domain when constructing the authorization URL.@brandonleegit commented on GitHub (Aug 20, 2025):
Workaround
As a temporary workaround, I was able to use Traefik reverse proxy to redirect the malformed URLs to the correct Microsoft endpoints:
This workaround successfully redirects the malformed URLs to the correct Microsoft Entra ID authorization endpoint, allowing OIDC authentication to work properly.
@mbecker20 commented on GitHub (Aug 28, 2025):
See https://github.com/moghtech/komodo/issues/445#issuecomment-3164971889