Blazor.Auth
Blazor.Auth copied to clipboard
Make user cookies HttpOnly and Secure
Requires #11 to be completed before anything described here
- Make user cookies HttpOnly and Secure in order to prevent XSS attacks (requires additional Cookies implementation for HttpOnly and Secure cookie flags)
- Split BlazorAuthenticationStateProvider into InteractiveWasmAuthenticationStateProvider and InteractiveServerAuthenticationStateProvider.
- Extract ServerSideAuthenticationStateService which will be used in the server-side endpoint for InteractiveWasmAuthenticationStateProvider, as well as in the InteractiveServerAuthenticationStateProvider to parse the user's cookies and generate AuthenticationState.
- Implement InteractiveWasmAuthenticationStateProvider which will retrieve the user's AuthenticationState by sending a request to the Blazor server, instead of directly accessing user's cookies via JS Interop. [Sequence diagram required]
- Implement InteractiveServerAuthenticationStateProvider which will retrieve the user's Cookies by requesting client's browser JS to make an HTTP call to the server: