當(dāng)我使用 IdentityServer4.AspNetIdentity 時。我使用個人用戶設(shè)置使用 Visual Studio 2019 創(chuàng)建項目。它無法使用代碼 500 打開我的網(wǎng)站我搜索了 Google 但沒有結(jié)果我在 Startup.cs 中的代碼: services.AddDbContext<ApplicationDbContext>(options => options.UseInMemoryDatabase("AuthDb"));services.AddIdentity<SimpleUser, IdentityRole>() .AddEntityFrameworkStores<ApplicationDbContext>() .AddDefaultTokenProviders();services.AddIdentityServer() .AddDeveloperSigningCredential() .AddInMemoryPersistedGrants() .AddInMemoryIdentityResources(Resources.GetIdentityResources()) .AddInMemoryApiResources(Resources.GetApiResources()) .AddInMemoryClients(Clients.Get()) .AddAspNetIdentity<SimpleUser>() .AddDeveloperSigningCredential(); services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
如何修復(fù)IdentityServer4.AspNetIdentity的網(wǎng)頁問題
幕布斯7119047
2023-07-09 15:09:18