C
C#6mo 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
mindhardt6mo ago
I would say you should add a nginx before your Blazor app and manage basic auth there
NileshGR
NileshGR6mo ago
Hmm, that is something I thought of earlier, but was wondering if there is a pure .NET way to do it.
mindhardt
mindhardt6mo 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 User6mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server
More Posts
(UNITY) [info] Project system initialization finished. 0 project(s) are loaded...2023-12-21 23:56:44.169 [info] Project system initialization finished. 0 project(s) are loaded, and Whose job is it to mutate an object? (Course Management project)Let's say I've got two classes, a `Course` and a `Student` class. Let's say I want to add a `CoursASP.NET CORE MVC For some reason any non png/img files are not being recognized.I have a GLTF file which is a 3D model, when i open it in my brower it gives 404, the dir has a sub Persist data between Quartz ExecutionI need to be able to persist data between instance executions. I have to tie two separate jobs togetHow to Transfer Data from one Form to the other FormHey, is there anyone that can help me? Im pretty new to C# and I need help with something. My problASP.NET MVC How to open Database in SQL Server Management Studio (can't connect server)?Pretty much the title. I have tried to go to the connection string to get the the server name and in✅ Urgent | Cannot update property in EF because another instance with the same key is being trackedHi, so I have following code: Basically I get a batch to update the field ```cs var batch = await cSelenium QuestionDo I need tear down etc for finalized product? Im using nunit framework but cant seem to be able to dotnet tool not recognized after local installI am trying to locally install the tool `dotnet-mgcb-editor` from nuget into my repository. But it's✅ Getting error when installing CSharpier globally``` C:\Users\mango\AppData\Local\Temp\c9a0f2f7-6b74-4505-bfe2-8c9a0efe4d18\restore.csproj : error NU