Tracks the testing deferred from the auth + connector work landed in feat/oidc-sign-in (commit e900961). The feature code shipped without end-to-end coverage of the new paths; this issue collects what needs tests.
Auth session / cookie transport
Desktop auth (#285)
OneDrive picker token (business-only)
Harness gap
There is currently no authed-request integration harness in nvisy-server (log in → carry session cookie/CSRF → hit a protected endpoint). Several items above need it; building that harness is a prerequisite and part of this work.
Blocking follow-up (separate from tests)
The OneDrive business picker is code-complete but not functional until the Azure app + connector OAuth grant include SharePoint delegated permissions (MyFiles.Read/.Write, AllSites.Read) — the {host}/.default token is empty otherwise. Tracked separately; noted here because the picker tests depend on it.
Tracks the testing deferred from the auth + connector work landed in
feat/oidc-sign-in(commit e900961). The feature code shipped without end-to-end coverage of the new paths; this issue collects what needs tests.Auth session / cookie transport
AuthHeader: cookie (nvisy.session) preferred, falls back toAuthorization: Bearer;AuthTransportrecorded correctly.csrf_protect): unsafe method + cookie auth requires matchingX-CSRF-Token==nvisy.csrf; bearer auth is exempt; constant-time compare.require_authentication→csrf_protect→slide_session.OptionalFromRequestPartsfail-closed: infra errors propagate, only 401-class map toNone.logoutclears both cookies and revokes the row.Desktop auth (#285)
redirectUrimints anApptoken and redirectsscheme://…?token=<jwt>with no cookie; a web origin still sets the cookie.POST /auth/desktop/token: authed; rejects a non-desktop-schemeredirectUri(400); mints anApptoken for the caller.classify_redirectunit coverage exists; add the endpoint-level (authed HTTP) tests.redirect_to_frontendno-redirect fallback fails loudly (500) when carrying a token instead of silently dropping it.App-token exemption from sliding + absolute cap, andprune_app_tokens(DB-gated tests exist, marked#[ignore]) — wire into a real DB CI run.OneDrive picker token (business-only)
mint_picker_tokenfor OneDrive resolves the SharePoint host and mints a{host}/.defaulttoken; the connector Graph token is untouched.unauthenticated.refresh_with_scopesrequests the scoped audience; empty scopes == the oldrefresh_tokensbehavior.{ resource }body: absent body works (Google/Box), present body scopes the mint (OneDrive).Harness gap
There is currently no authed-request integration harness in
nvisy-server(log in → carry session cookie/CSRF → hit a protected endpoint). Several items above need it; building that harness is a prerequisite and part of this work.Blocking follow-up (separate from tests)
The OneDrive business picker is code-complete but not functional until the Azure app + connector OAuth grant include SharePoint delegated permissions (
MyFiles.Read/.Write,AllSites.Read) — the{host}/.defaulttoken is empty otherwise. Tracked separately; noted here because the picker tests depend on it.