At first I'm beginner in asp. Start by asp.net tutorial to write a web api. after the tutorial finished (I did not add any other code) when I try to test the Api it return me unautherize 401.
I found the below line in my Web.config
<authentication mode="None" />
and in WebApiCOnfig.cs
config.Filters.Add(new HostAuthenticationFilter(OAuthDefaults.AuthenticationType));
how can I access to my API without authentication? it's a simple test and no need to any authentication
[AllowAnonymous]attribute on intended controller or action