Bypass Authorize Attribute in .Net Core for Release Version
<p>Is there a way to "bypass" authorization in asp.net core?  I noticed that the Authorize attribute no longer has a AuthorizeCore method with which you could use to make decisions on whether or not to proceed with auth.</p>

<p>Pre .net core you could do something like this:</p>

<pre><code>protected override bool AuthorizeCore(HttpContextBase httpContext)
{
    // no auth in debug mode please
    #if DEBUG
       return true;
    #endif

    return base.AuthorizeCore(httpContext);
}
</code></pre>

<p>I hope I'm not missing something blatantly obvious but it would be nice to be able to skip the auth workflow in DEBUG if needed.  I just haven't been able to find it for .net core</p>