webui: Fix OIDC login Sign In disabled by always-required credentials - #171
Open
tlsalmin wants to merge 1 commit into
Open
webui: Fix OIDC login Sign In disabled by always-required credentials#171tlsalmin wants to merge 1 commit into
tlsalmin wants to merge 1 commit into
Conversation
Apply non-form state for the selected method on load (not only Select onChange), clear identifier/secret validators for OIDC, and use an absolute /oidc/login href. Adds a unit test for the OIDC login path.
Member
|
Hey @tlsalmin, thanks for using Stork, for the patch and sorry to hear about your problems. We're getting lots of spammy accounts, so our anti-spam defenses are cranked up high and they occasionally block legitimate users. I just managed to create an account using my private e-mail. I've asked our Ops team to investigate. |
Contributor
|
Hi @tlsalmin, thanks for reporting this! I'm trying to better understand what happened. I tried to replicate the problem in my local testing environment, but I was unable to do so. Could you answer these questions?
Thanks! |
Member
|
hey @tlsalmin you might want yo check your mail. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Tried to utilize OIDC for authentication (Authentik as the IdP) but hit an issue that the login button could not be clicked after OIDC was chosen. Backend OIDC was fine (
GET /oidc/loginreturned 302 to the IdP with correctredirect_uri/ PKCE); the problem was only in the login UI.I could not open an issue on GitLab (account signup blocked), so this is a GitHub PR as described in CONTRIBUTING.md for that case.
Disclosure: This fix was implemented with Grok (xAI). I (Tomi) have not carefully reviewed the change line-by-line myself; I verified that applying the equivalent fix unblocked OIDC login for me in a real deploy (Stork 2.5.0 + Authentik). Please treat the patch as needing a normal maintainer review.
Summary
When OIDC is selected as the authentication method, the login form still keeps
identifier/secretas required, so the form stays invalid. Combined with non-form UI state only being refreshed from the SelectonChangepath (not always on method load), OIDC is easy to leave unusable—especially with a single OIDC method or a restored OIDC preference.Also fixes the OIDC link using a relative
oidc/login?…href (no leading/), which is fragile behind reverse proxies / path resolution.Changes
updateNonFormLabel()for the selected method after methods load (OIDC-only and restored preference included)./oidc/login?returnUrl=…for the non-form login link.Test plan
/oidc/login?returnUrl=…→ IdP (e.g. Authentik).selected-auth-method=oidcfrom localStorage → same as selecting OIDC.login-screen.component.spec.ts.Environment where this was observed
Notes