Hi developers, I need WORKING sample project in C# with the following features:
1. Simple .NET45 selfhosted OWIN web application running in console (not IIS)
It will implement two pages:
A. http://localhost:9999/api/anonymous (or similar). It must be accessible anonymously and will simply return "OK". (Accessible for example by anonymous c# webclient)
B. http://localhost:9999/api/authenticated (or similar). It must be able to obtain NTLM authenticated username and simply return it as text. (When called from standard browser or IE).
Should be easy, but I was not able to build working example with both NTLM and anonymous access simultanously.
Result should be working EXE file and source code in c#.