Asp.net "disable" authentication in development environment : <p>Is it possible to "disable" 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>
