1 year ago

#303596

test-img

user1069516

Authorize doesn't work with empty credentials

I have a .net 4.7.2 web api deployed on IIS with Windows authentication.

When I open it, if I valid authentication form with empty user and password, it works, swagger page is displayed and API call with swagger works to :

enter image description here

My controller Home :

enter image description here

If I spy "HttpContext.User.Identity", it filled with my credentials : enter image description here

I test the same scenario with a static website, same result.

Is it normal ?

Thank you for your help

c#

.net-4.7.2

0 Answers

Your Answer

Accepted video resources