A failed GitHub sign-in shows only a JSON error
Maintainer antworten meist innerhalb von 1 Tag
@Ray891220 arbeitet bereits daran.
Seit 10.11.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
A failed GitHub sign-in leaves the user on a page that shows only a JSON object, such as {"error":"Login state is missing or expired."}. There is no explanation of what went wrong and no link back to where the sign-in started, so the only way on is to edit the address bar.
Who is affected: anyone signing in with GitHub, which reciprocal practice requires, and the operator they ask for help.
Where it comes from: callback_response in src/web/auth.rs (at 5e00eab) returns json_response for every failure of a browser navigation, not an API call. Reachable cases include:
Missing GitHub callback code.: GitHub sends the user back with?error=access_deniedand nocodewhen they press Cancel on the authorization page.Missing GitHub callback state.Login state is missing or expired.: the state cookie is absent, for example after a slow authorization or when the callback lands on a different origin than the one that started the sign-in.Login state did not match.
Desired outcome: a failed sign-in shows a readable page that names the likely cause in a sentence and offers a link that starts sign-in again, returning to the page the user came from (/peer-lobby when the sign-in began there).
Acceptance criteria:
- Pressing Cancel on GitHub's authorization page lands on a page that says the sign-in was cancelled and offers to try again.
- An expired or missing state shows a page that suggests signing in again from the same address, with a working link.
- API clients that call these routes, if any, still get a status code they can test; the change concerns what a browser renders.
Current workaround: open /peer-lobby again by hand and press Sign in with GitHub.
- Vorherrschende Sprache
- Rust
- Sterne
- 228
- Forks
- 150
- Ø Merge
- 1 T. 3 Std.
- Gemergte PRs (30 T.)
- 230
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus sysprog21/codetrial
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 88/100
sysprog21/codetrial#646 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
sysprog21/codetrial#645 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Show recorded scores in past attempt rowsEvtl. vergeben @liehcheng hat das vor 3 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
sysprog21/codetrial#604 · 4 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Calibration can pass invalid assessability dataEvtl. vergeben @Jonathas2127 hat das heute übernommen. Offen
sysprog21/codetrial#649 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
sysprog21/codetrial#643 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in sysprog21/codetrial
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
software-mansion/pathfinder#3620 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug priority: low
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
storytold/wordcraft#6211 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
backlog multiple issues priority: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
storytold/pdfcraft#6911 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
-
DGNIMPORT: "The DGN model has nothing that can be imported" when the first element streams are emptyOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
HakanSeven12/OpenCADStudio#2820 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag