A duplicated admin tab signs out its opener about an hour later

Offen
#3,280 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
csharp

Rechercherichtung

Read admin/src/FluentCMS.Admin/Authentication/AdminSession.cs:89-105 and the TwoTabsTests case that covers refreshes within the 30-second reuse leeway. Trace how session restore and refresh-token redemption interact across tabs, then add an end-to-end case for an opener and duplicate remaining signed in past an hour. Done means the test passes and a copied session drops its inherited refresh token before silently signing in through authorize.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

area:admin type:bug

Problem

A duplicated admin tab starts with the opener's sessionStorage and redeems the stored refresh token (admin/src/FluentCMS.Admin/Authentication/AdminSession.cs:89-105), while the opener still holds the same token in memory. At the opener's next refresh, well past the server's 30-second reuse leeway, it presents a redeemed token, gets invalid_grant and is sent to sign in. TwoTabsTests covers only refreshes within the leeway.

Proposal

Detect a copied session at restore (a per-tab id answered over BroadcastChannel); a copy drops the inherited refresh token and signs in silently through authorize.

Acceptance

  • An opener and its duplicate both stay signed in past an hour
  • An end-to-end case covers it

Found in the code review of 17 Nov 2026 (B9).

Vorherrschende Sprache
C#
Sterne
569
Forks
107
Ø Merge
2 Std. 49 Min.
Gemergte PRs (30 T.)
397

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus fluentcms/FluentCMS

Alle Issues in fluentcms/FluentCMS

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.