You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(FR-2616): handle totp and concurrent-session inline in STokenLoginBoundary
- STokenLoginError gains `totp-required` (with `invalidOtp` hint); the
existing `concurrent-session` kind is now wired up end-to-end.
- `tokenLogin` helper throws a structured `TokenLoginFailedError` instead
of a generic `Error`, fixing a latent bug where a `{ fail_reason }`
return value (truthy object) was treated as success by the caller.
- `STokenLoginBoundary` keeps a pending OTP ref (single-use) and a sticky
`forceApprovedRef`; both fold into `extraParams` on the next retry.
- `DefaultErrorCard` swaps its action area in place for `totp-required`
(OTP input + Submit) and `concurrent-session` (Copy details + Sign in
anyway) — no separate modal, no layout split. Card status shifts from
`error` to `warning` for these two kinds so the user reads them as
required follow-ups, not terminal failures.
- Classification uses duck-typed field extraction instead of
`instanceof TokenLoginFailedError` so cross-module-instance errors
(Jest mocks, HMR reloads) classify the same.
- TODO(user-tunable): once `client.token_login` surfaces the probe
`type`, replace the string-matching classifier with `type`
comparisons. The current substrings mirror LoginView's legacy
fallback.
"AuthenticatingDescription": "Ihr Anmelde-Token wird verifiziert…",
2073
+
"ConnectingDescription": "Verbindung mit dem Backend.AI-Server wird hergestellt…",
2074
+
"ErrorConcurrentSessionDescription": "Sie sind bereits an einem anderen Ort angemeldet. Möchten Sie die bestehende Anmeldung beenden und sich hier anmelden?",
2075
+
"ErrorConcurrentSessionTitle": "An anderer Stelle angemeldet",
2076
+
"ErrorTotpInvalidHint": "Der eingegebene Code wurde nicht akzeptiert. Bitte versuchen Sie es erneut.",
2077
+
"ErrorTotpRequiredDescription": "Geben Sie den Code aus Ihrer Authentifizierungs-App ein, um fortzufahren.",
Copy file name to clipboardExpand all lines: resources/i18n/en.json
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2077,11 +2077,12 @@
2077
2077
"Updated": "Resource preset updated"
2078
2078
},
2079
2079
"sTokenLoginBoundary": {
2080
-
"AuthenticatingDescription": "Authenticating with your single sign-on token. This usually takes only a moment.",
2080
+
"AuthenticatingDescription": "Verifying your sign-in token…",
2081
2081
"AuthenticatingTitle": "Signing you in",
2082
+
"ConnectingDescription": "Connecting to the Backend.AI server…",
2082
2083
"CopyErrorDetails": "Copy error details",
2083
-
"ErrorConcurrentSessionDescription": "This account is already signed in somewhere else. Please close the other session and try again.",
2084
-
"ErrorConcurrentSessionTitle": "Another active session was detected.",
2084
+
"ErrorConcurrentSessionDescription": "You are already logged in elsewhere. Would you like to end the existing session and log in here?",
2085
+
"ErrorConcurrentSessionTitle": "Logged in elsewhere",
2085
2086
"ErrorDetailsCopied": "Error details copied to clipboard.",
2086
2087
"ErrorEndpointUnresolvedDescription": "The Backend.AI server address could not be resolved from the configuration file. Please try again in a moment or contact your administrator.",
2087
2088
"ErrorEndpointUnresolvedTitle": "Server configuration is unavailable.",
@@ -2091,9 +2092,14 @@
2091
2092
"ErrorServerUnreachableTitle": "Cannot reach the Backend.AI server.",
2092
2093
"ErrorTokenInvalidDescription": "The sign-in token may have expired or been revoked. Please restart the sign-in flow from your original application.",
2093
2094
"ErrorTokenInvalidTitle": "Your sign-in token is not valid.",
2095
+
"ErrorTotpInvalidHint": "The code you entered was not accepted. Please try again.",
2096
+
"ErrorTotpRequiredDescription": "Enter the code from your authenticator app to continue.",
"ErrorUnknownDescription": "An unexpected error occurred while signing in. Please try again, and copy the error details below if the problem persists.",
0 commit comments