Skip to content

Add OIDC auto-redirect to login page#1315

Closed
johnmaguire wants to merge 24 commits intomoghtech:mainfrom
johnmaguire:oidc-auto-redirect
Closed

Add OIDC auto-redirect to login page#1315
johnmaguire wants to merge 24 commits intomoghtech:mainfrom
johnmaguire:oidc-auto-redirect

Conversation

@johnmaguire
Copy link
Copy Markdown

When KOMODO_OIDC_AUTO_REDIRECT=true, the login page automatically redirects unauthenticated users to the configured OIDC provider. Users can bypass by appending ?disableAutoLogin to the login URL.

Depends on mogh-lib change adding auto_redirect to OidcConfig and oidc_auto_redirect to GetLoginOptionsResponse: moghtech/lib#1

Closes #311

@mbecker20
Copy link
Copy Markdown
Member

mbecker20 commented Apr 4, 2026

@johnmaguire 2.2.0 is moving common UI components also to https://github.com/moghtech/lib, ui library. The main branch here already includes Login component, since it is actually tied to the Mogh Auth api library rather than Komodo or any particular app. The changes to login component here can be moved to PR over there, and this PR can be updated to point to 2.2.0 branch

mbecker20 and others added 3 commits April 4, 2026 13:16
When KOMODO_OIDC_AUTO_REDIRECT=true, the login options response
includes oidc_auto_redirect, enabling the UI (via mogh-lib) to
automatically redirect unauthenticated users to the OIDC provider.
Users can bypass by appending ?disableAutoLogin to the login URL.

Depends on moghtech/lib UI change adding auto-redirect to LoginPage.

Closes moghtech#311
@johnmaguire
Copy link
Copy Markdown
Author

@mbecker20 Couldn't figure out how to change the target branch, so I created a new PR #1339

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OIDC / Oauth2 auto-redirect to auth provider

2 participants