问题描述
我遵循了本指南:
https://docs.microsoft.com/en-us/aspnet/core/security/authentication/identity-api-authorization?view=aspnetcore-5.0#create-an-app-with-api-authorization-support
我想禁用 https,因为它不会让我登录。当我使用 https 时,Web 应用程序可以工作,但我也希望可以选择在没有 https 的情况下运行应用程序。
这些是我在启动时的设置:
services.AddIdentityServer()
.AddApiAuthorization<ApplicationUser,ApplicationDbContext>();
services.AddAuthentication()
.AddIdentityServerJwt();
然后,
app.UseIdentityServer();
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)