December 2019
Intermediate to advanced
598 pages
12h 21m
English
public void Configure(IApplicationBuilder app, IHostingEnvironment env){ ... app.UseEndpoints(...); app.UseAuthentication();}
The problem is that authentication comes after the endpoints are handled in the request pipeline, which means that the user will always be unauthenticated in controller action methods even if the request has a valid access token. This means that protected resources will never be able to be accessed. UseAuthentication should come before UseEndpoints in the Configure method.
AllowAnonymous
Read now
Unlock full access