Hi @Anuj Singh
Please note that the order of your middleware should be:
app.UseAuthentication();
app.UseAuthorization();
Their order is very important.
Best Regards
Yinqiu
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
https://localhost:5001/Identity/Account/Login?ReturnUrl=%2F
A set of technologies in .NET for building web applications and web services. Miscellaneous topics that do not fit into specific categories.
Hi @Anuj Singh
Please note that the order of your middleware should be:
app.UseAuthentication();
app.UseAuthorization();
Their order is very important.
Best Regards
Yinqiu
Hi,
Based on your description, this issue seems related to windows apinet, thus we added dotnet-aspnet-core-general tag so that it would be easier for you to get support from aspnet engineers.
Thanks for your understanding.
Best regards,
Danny
-----------------------------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.