Search code examples
iisasp.net-web-apiwindows-authentication

Avoid Windows authentication depending on the controller or URL with WebAPI


I am using with WebAPI with Windows Authentification.

However, for a very specific case (a Flash Client... no comment), I need one of my controller to accept a non-authenticated client. Is there a way to achieve this?

Thank you!


Solution

  • Try AllowAnonymous attribute in your controllor or methods