Blazor WASM Initial Load Time Performance - Authentication

Part of a series on Blazor WASM initial load performance Server Prerendering Improving Data Loading Authentication In Prerendering Part 3: Authentication In Prerendering The changes already shown in the previous posts have made for a fast initial page load with data showing when available but so far everything being done has been anonymous pages. What if that initial page load also needs to be authenticated? According to the docs for Prerendering and docs for WASM security it is isn’t supported for authentication endpoints (/authentication/ path segment)....

January 30, 2023 · 6 min · 1197 words · John Bowen

Auth Token Configuration in YARP

The YARP reverse proxy library provides an easy way to forward API calls through an intermediary service. It can be particularly useful for BFF services for front end clients. By default, API requests are forwarded with their existing headers, which can be a problem if the end API requires an auth token that isn’t available to the originating client. In the case of a BFF the API call will generally originate at the client side application running in untrusted browser space which will be using cookie authentication to the service and so won’t have a token to send....

January 12, 2023 · 4 min · 839 words · John Bowen