title: ASP.NET Core disable authentication in development environment
body: <p>Is it possible to &quot;disable&quot; authentication in ASP.NET Core application without changing its logic?</p>
  <p>I have a .net website which uses an external identity server app for authentication.
  Anyway I would like to be able to mock the authentication when I'm developing it (ASPNETCORE_ENVIRONMENT = Development), airing access to all actions ignoring the authorization attributes.</p>
  <p>Is it possible to do it just mocking some services in the service collection?</p>