C
C#12mo ago
NileshGR

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
mindhardt
mindhardt12mo ago
I would say you should add a nginx before your Blazor app and manage basic auth there
NileshGR
NileshGROP12mo ago
Hmm, that is something I thought of earlier, but was wondering if there is a pure .NET way to do it.
mindhardt
mindhardt12mo ago
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
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server