ASP.Net: Ignore Windows Auth
I have an application where I need to use 'Basic Authentication'; however, in order for you to debug the application in Visual Studio, IIS requires the directory to also have 'Windows Authentication' enabled.
The problem is my user handler tries to send out a request for basic authentication to compare them to a database... but the basic authentication request is pushed down in priority by the NTLM request IIS inserts into the header due to the above 'Windows Authentication', and so that'll get sent to the server by the user instead.
Has anyone ran into this situation before? Is there a way to debug in Visual Studio without having windows authentication on (or at least keep it from requesting the security for requests)?
Edit: Forgot to mention, outside of the development environment, 'windows authentication' would not be on
I always used to debug my web apps by just attaching to the process.
- → Function Undefined in Axios promise
- → React formatting dates with momentjs server side
- → AngularJS directive: "templateUrl" doesn't work while "template" works
- → how to add cannonical tag for ASPX .NET page
- → URL routing requires /Home/Page?page=1 instead of /Home/Page/1
- → ASP.NET routing w/ changing article name
- → NumericTextBox Loses Value using Html.TextBoxFor, not HTML
- → How to do Bundling of css & js files in Drupal
- → Does the fact that every page is reachable through www.example.com and www.example.com/index have any SEO impact?
- → How to add rich snippet in a website?
- → UrlRewriting does not work on server, but on localhost it works fine on asp.net?
- → Bootstrap Nav Collapse via Data Attributes Not Working