Is it important order of authentication middlewares?
<p>When using more than one authentication middlewares, is it important order of these authentication middlewares. For example:</p>

<p>Is there a difference between </p>

<pre><code>app.UseJwtBearerAuthentication(new JwtBearerAuthenticationOptions()
{
     //...
});

app.UseIdentity();
</code></pre>

<p>and</p>

<pre><code>app.UseIdentity();

app.UseJwtBearerAuthentication(new JwtBearerAuthenticationOptions()
{
     //...
});
</code></pre>