Refactor Intelligence Toolbar (#14) and fix auth regression #24

Merged
mjasin merged 1 commits from fix/auth-regression into develop 2026-05-08 18:50:15 +00:00
Owner

This PR resolves the authentication regression issue where users encountered "Unauthorized" errors after logging out and back in. This regression was identified during the refactoring of the Intelligence Toolbar.

Fixes #14

Changes:

  • WASM Client: Added AuthenticationHeaderHandler to automatically attach Bearer tokens to HttpClient requests.
  • Server: Configured Cookie authentication to return 401 Unauthorized for /api requests instead of redirecting to the login page.
  • Project Configuration: Added Microsoft.Extensions.Http to the WASM client project to support IHttpClientFactory and message handlers.

Verified with local build.

This PR resolves the authentication regression issue where users encountered "Unauthorized" errors after logging out and back in. This regression was identified during the refactoring of the Intelligence Toolbar. Fixes #14 ### Changes: - **WASM Client**: Added `AuthenticationHeaderHandler` to automatically attach Bearer tokens to `HttpClient` requests. - **Server**: Configured Cookie authentication to return `401 Unauthorized` for `/api` requests instead of redirecting to the login page. - **Project Configuration**: Added `Microsoft.Extensions.Http` to the WASM client project to support `IHttpClientFactory` and message handlers. Verified with local build.
mjasin added 1 commit 2026-05-08 18:48:28 +00:00
mjasin force-pushed fix/auth-regression from 3ff8d81d0f to 0e0af40f5e 2026-05-08 18:48:28 +00:00 Compare
mjasin changed title from Fix authentication regression post-logout/login to Refactor Intelligence Toolbar (#14) and fix auth regression 2026-05-08 18:48:33 +00:00
mjasin merged commit 9e77aee231 into develop 2026-05-08 18:50:15 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mjasin/Nexus.Reader#24