Skip to content

fix: handle external login state and emit readiness event - #13493

Merged
wanghe-fit2cloud merged 2 commits into
dev-v2from
pr@dev-v2@fix_auth
Aug 6, 2026
Merged

fix: handle external login state and emit readiness event#13493
wanghe-fit2cloud merged 2 commits into
dev-v2from
pr@dev-v2@fix_auth

Conversation

@lan-yonghui

Copy link
Copy Markdown
Member

No description provided.

Copilot AI lite review requested due to automatic review settings August 6, 2026 04:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the login UX for OIDC/SAML2 “ticket” callbacks by masking the login UI while an external-login ticket is being processed and by notifying the parent view when external-login handling is complete (so the UI can be shown again if login didn’t succeed).

Changes:

  • Add an externalLoginPending mask/loader in the login page when OIDC/SAML2 tickets are present in the URL.
  • Emit an external-login-ready event from login-form.vue after external-ticket handling finishes (when the user is not logged in).
  • Await navigation to home after successful login.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
frontend/src/views/login/index.vue Adds a full-screen loading mask while external-login tickets are pending and hides the login container until readiness is emitted.
frontend/src/views/login/components/login-form.vue Emits readiness after external-ticket processing; awaits post-login navigation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread frontend/src/views/login/index.vue Outdated
Comment on lines +52 to +56
const hasExternalLoginTicket = () => {
const url = new URL(window.location.href);
const fragmentParams = new URLSearchParams(url.hash.startsWith('#') ? url.hash.slice(1) : url.hash);
return Boolean(
fragmentParams.get('oidc_ticket') ||
Comment on lines 611 to 615
localStorage.removeItem('dashboardCache');
localStorage.removeItem('upgradeChecked');
routerToName('home');
clearLoginKeydownHandler();
await routerToName('home');
};
Copilot AI review requested due to automatic review settings August 6, 2026 05:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@wanghe-fit2cloud
wanghe-fit2cloud merged commit 1971d9d into dev-v2 Aug 6, 2026
4 checks passed
@wanghe-fit2cloud
wanghe-fit2cloud deleted the pr@dev-v2@fix_auth branch August 6, 2026 05:53
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.

3 participants