Web api with 2 pipelines and a different authentication for each one
<p>I am developing a Web Api that contains 2 endpoints A and B and I need to use BasicAuthentication for A and a custom validation for B. I am trying not split the code in 2 projects and for that I am using OWIN with 2 pipe:</p>

<pre><code>        app.Map("/api/A", basicAuth =&gt;
        {                
            basicAuth.UseBasicAuthentication(container);
        });

        app.Map("/api/B", idTokenAuth =&gt;
        {                
            idTokenAuth.UseBearerAuthentication(container);
        });
</code></pre>

<p>The problem I am experiencing is that after the authentication it doesn't redirect to the corresponding controller and returns always HTTP/1.1 404 Not Found.</p>

<p>Any tip?</p>