Migrated the `EnvelopeReceiverPage.razor` component from using a WASM client-side authentication service to a server-side rendering (SSR) authentication service. This resolves issues caused by self-referencing HTTP requests in SSR contexts. - Added `IEnvelopeAuthService` interface and `EnvelopeAuthService` implementation to validate user authentication and envelope key claims directly via `HttpContext.User`. - Registered `EnvelopeAuthService` in DI container with a scoped lifetime. - Updated `EnvelopeReceiverPage.razor` to use `IEnvelopeAuthService` for authentication checks and `IHttpClientFactory` for logout functionality (changes reverted due to merge conflict). - Improved authentication flow by eliminating HTTP overhead and ensuring compatibility with SSR. - Remaining tasks include re-applying page changes, testing, and updating documentation. This migration ensures a cleaner, more reliable authentication mechanism for SSR pages.
11 KiB
11 KiB