Connexion SSO via l'appairage sur le backend centralisé (2.17.0) #5

Merged
bruno merged 11 commits from fix/sso-connexion-2.17.0 into main 2026-11-16 22:38:13 -05:00
Showing only changes of commit 290af3aacb - Show all commits
@@ -46,8 +46,12 @@ class AuthInterceptor @Inject constructor(
// Still 401 after a clock-corrected retry: the secret is genuinely wrong or was // Still 401 after a clock-corrected retry: the secret is genuinely wrong or was
// regenerated server-side. Broadcast so the UI can clear credentials and return // regenerated server-side. Broadcast so the UI can clear credentials and return
// to the login screen. // to the login screen — except for /api/v1/info, which is only ever called to
if (response.code == 401) { // verify credentials (login / pairing verification). A 401 there must NOT wipe
// the credentials: for a pairing verification it would destroy a device secret
// that the server only issues once, for a possibly transient cause (Hub role
// cache, clock). The repository decides what to keep in that case.
if (response.code == 401 && !original.url.encodedPath.endsWith("/api/v1/info")) {
sessionManager.onUnauthorized() sessionManager.onUnauthorized()
} }