GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Consultant deep links are swallowed by forced 2FA onboarding redirect · Issue #841 · OpenResilienceInitiative/ORISO-Frontend

Consultant deep links are swallowed by forced 2FA onboarding redirect #841

New issue
Copy link
New issue
Copy link
Closed
Bug
Closed
Consultant deep links are swallowed by forced 2FA onboarding redirect#841
Bug
Copy link
Assignees
BjoernLudwigStorypapst
Labels
needs triageNew issue waiting for a maintainer to review, prioritize, and route.

Description

@Storypapst
Storypapst
opened on Aug 1, 2026
Issue body actions

Status 2026-08-12 — delivered, awaiting test. A consultant without 2FA opening a deep link now lands on the requested view; the reminder appears on top of it instead of replacing it, and dismissing it once keeps it closed for the rest of the browser session (sessionStorage). PR #842, merged to pre-dev. Next step: test on Pre-Dev once the environment is deployed.


Summary

Consultants who have not completed 2FA setup cannot reach any view via a direct link (e-mail notification links, bookmarks, support handoffs): every full page load is redirected to the security settings and the 2FA setup dialog is force-opened. The requested view never opens, and the redirect repeats on every page load.

Severity: P0 / urgent — blocks consultants from reaching sessions via links and blocked automated E2E reproduction on 2026-08-01.

Environment: Pre-Dev (predev.oriso.org), frontend v2.0.1, consultant account without 2FA.

Steps to reproduce

  1. Log in as a consultant that has not set up 2FA.
  2. Open a session deep link, e.g. /sessions/consultant/sessionView/session/2.
  3. The app redirects to /profile/einstellungen/sicherheit and force-opens the 2FA setup dialog. The requested session never opens.
  4. Close the dialog and open the deep link again — the redirect and the dialog return on every page load.

The open dialog (twoFactorSetupDialog) also intercepts all pointer events, so the settings page underneath is unusable until the dialog is dismissed.

Expected

  • Deep links open the requested view. A 2FA reminder may be shown on top, but the navigation target must be preserved.
  • After the user dismisses the reminder once, it does not force-open again for the rest of the session.

Root cause

  • Routing.tsx:118 mounts <TwoFactorNag /> for every consultant.
  • TwoFactorNag.tsx:42-46: once todaysDate >= settings.twofactor.dateTwoFactorObligatory (already the case on Pre-Dev), the effect unconditionally calls openTwoFactorSettings() on mount, which navigates to /profile/einstellungen/sicherheit with state.openTwoFactor = true (useOpenTwoFactorSettings.ts) and discards the URL the user actually opened.
  • The dismissal flag (forceHideTwoFactorNag) is React component state only, so every full page load starts over — nothing is persisted per session.

This is the designed "obligatory" phase of the 2FA rollout acting as a hard gate; whether the gate should discard the navigation target and re-trigger on every load is the product question this issue raises. No evidence of a regression.

Suggested direction

Keep the obligatory nag, but (a) preserve the originally requested URL (e.g. redirect back after dialog close, or show the dialog on top of the requested view), and (b) persist the dismissal for the session (e.g. sessionStorage) so the dialog does not force-open on every load.

Reviewer test plan (to be ticked by the reviewer on Pre-Dev)

  • Desktop: consultant without 2FA opens a session deep link → session view opens (reminder allowed, navigation preserved)
  • Desktop: dismissing the 2FA dialog once keeps it closed for the rest of the browser session (including after a page reload)
  • Mobile viewport (≤575px): same deep link opens the session view; dialog (if shown) is dismissible and stays dismissed
  • Consultant with 2FA configured: deep links unaffected, no dialog
  • Regression check: 2FA setup remains reachable and completable via Profil → Einstellungen → Sicherheit
Reacted by coderabbitai

Activity

  1. Storypapst
    assigned
    shazia-k
    on Aug 1, 2026
  2. Storypapst
    added
    P0
    on Aug 1, 2026
  3. Storypapst
    added this to ORISO Roadmapon Aug 1, 2026
  4. coderabbitai commented on Aug 1, 2026

    @coderabbitai
    coderabbitaiBot
    on Aug 1, 2026 – with coderabbitai
    More actions
    🔗 Related PRs

    #533 - fix: allow consultants to disable 2FA [merged]
    #570 - Align mandatory 2FA and the voice player with M3 [merged]
    #842 - fix: keep deep-link target under obligatory 2FA nag, persist dismissal per session [merged]
    #855 - fix(2fa): put the setup success card on the M3 scheme [open]
    #919 - feat: opt-in 2FA toggle at registration [merged]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  5. coderabbitai
    added
    needs triageNew issue waiting for a maintainer to review, prioritize, and route.
    on Aug 1, 2026
  6. Storypapst
    moved this to Ready in ORISO Roadmapon Aug 1, 2026
  7. Storypapst
    added the
    Bug
    issue type on Aug 1, 2026
  8. kiodreambau
    set
    Priority
    to
    Urgent
    on Aug 1, 2026
  9. kiodreambau
    moved this from Ready to In progress in ORISO Roadmapon Aug 1, 2026
  10. kiodreambau
    assigned
    Storypapst
    and unassigned
    shazia-k
    on Aug 1, 2026
  11. Storypapst
    moved this from In progress to In review in ORISO Roadmapon Aug 1, 2026
  12. BjoernLudwig
    removed
    P0
    on Aug 11, 2026
  13. Storypapst
    moved this from In review to QA internal Dev in ORISO Roadmapon Aug 12, 2026
  14. Storypapst commented on Aug 24, 2026

    @Storypapst
    Storypapst
    on Aug 24, 2026
    CollaboratorAuthor
    More actions

    Verified as delivered: PR #842 ("fix: keep deep-link target under obligatory 2FA nag, persist dismissal per session"), merged to pre-dev, implements exactly the requested behavior: the obligatory 2FA nag now renders as a dismissible overlay on top of the requested view instead of redirecting, and dismissal persists per browser session via sessionStorage. All 7 items of the reviewer test plan were verified end-to-end on predev.oriso.org (deep link preserved, dismissal persists across reload, correct setup-flow navigation, new-session re-nag, mobile viewport, unaffected 2FA-configured consultants, regression check), with screenshots attached to the PR.

    Moving to QA external Dev for external review. cc @BjoernLudwig

  15. Storypapst
    assigned
    BjoernLudwig
    on Aug 24, 2026
  16. Storypapst
    moved this from QA internal Dev to QA external Dev in ORISO Roadmapon Aug 24, 2026
  17. Storypapst
    closed this as completedon Aug 28, 2026
  18. Storypapst
    moved this from QA external Dev to Done in ORISO Roadmapon Aug 28, 2026
  19. Storypapst
    added a commit that references this issue on Oct 8, 2026

    feat(2fa): gate the app on a required second factor instead of nagging

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

Metadata

Metadata

Assignees

  • @BjoernLudwig
    BjoernLudwig
  • @Storypapst
    Storypapst

Labels

needs triageNew issue waiting for a maintainer to review, prioritize, and route.

Type

Bug

Fields

Priority

Urgent

Platform release

v2.0.2

Projects

  • ORISO Roadmap
    Status
    Done
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.