HTTP Basic Auth in Blazor
I am working on a Blazor app, how to add HTTP Basic authentication for the app? I don't need Identity and the claims route, this is a single user application.
Just want to add that browser based HTTP Auth dialog to prevent misuse.
4 Replies
I would say you should add a nginx before your Blazor app and manage basic auth there
Hmm, that is something I thought of earlier, but was wondering if there is a pure .NET way to do it.
You can check whether there are env vars to configure kestrel to do this
But otherwise basic auth is a webserver thing, not business logic (which is represented by asp.net)
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View