Skip to content

fix: leave the oidc callback page when the sign-in fails - #4218

Merged
JammingBen merged 1 commit into
opencloud-eu:mainfrom
andrewyager:fix/oidc-callback-hang
Nov 3, 2026
Merged

JammingBen merged 1 commit into
opencloud-eu:mainfrom
andrewyager:fix/oidc-callback-hang

Conversation

@andrewyager

Copy link
Copy Markdown
Contributor

Description

When the sign-in callback fails on the anonymous OIDC callback page, handleAuthError sets hasAuthErrorOccurred, but no navigation follows that lets the authGuard show the access denied page. The callback page stays on its loading state permanently.

signInCallback now goes to the access denied page itself when the error flag is set after handleAuthError. The user can continue with "Log in again". When the IdP session is still active, that completes without a new password prompt. I did not restart the login automatically, because it could loop if the browser storage does not keep the state.

Related Issue

How Has This Been Tested?

  • test environment: macOS, Node 24.22.2, pnpm check:all
  • test case 1: new unit test. A signinRedirectCallback rejection with "No matching state found in storage" on the callback route goes to accessDenied. The test fails without the fix.
  • test case 2: the existing signInCallback, handleAuthError and router guard tests pass.
  • test case 3: the fault was reproduced on a production OpenCloud 7.5.0 instance with a callback URL that has an unknown state.

When the sign-in callback fails on the anonymous callback page, for
example with "No matching state found in storage", the auth error
flag is set but no navigation follows. The page then shows the
loading state permanently. Navigate to the access denied page, which
lets the user log in again.
@github-project-automation github-project-automation Bot moved this to Qualification in OpenCloud Team Board Nov 3, 2026
@kulmann kulmann moved this from Qualification to Needs Review in OpenCloud Team Board Nov 3, 2026

@JammingBen JammingBen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@JammingBen
JammingBen merged commit fc023b1 into opencloud-eu:main Nov 3, 2026
29 checks passed
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in OpenCloud Team Board Nov 3, 2026
@openclouders openclouders mentioned this pull request Nov 3, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

OIDC callback page hangs on 'Logging you in' when the sign-in callback fails

2 participants