jsD*_*via 5 asp.net-core identityserver4
因此,我基于identityserver.io的快速启动创建了一个项目,并根据教程进行了所有操作。但是我没有
AddConfigurationStore
AddOperationalStore
上
services.AddIdentityServer
有谁能够帮助我 ?
值得一提的是,他们是在IdentityServer4 V2.2.0和IdentityServer发行版页,我没有看到任何东西约这种变化。
这是我的配置代码:
var builder = services.AddIdentityServer(options =>
{
options.Events.RaiseErrorEvents = true;
options.Events.RaiseInformationEvents = true;
options.Events.RaiseFailureEvents = true;
options.Events.RaiseSuccessEvents = true;
})
.AddInMemoryIdentityResources(Config.GetIdentityResources())
.AddInMemoryApiResources(Config.GetApis())
.AddInMemoryClients(Config.GetClients())
.AddAspNetIdentity<ApplicationUser>();
Run Code Online (Sandbox Code Playgroud)
AddConfigurationStore和AddOperationalStore是Microsoft.Extensions.DependencyInjection命名空间中的扩展,但位于程序集中IdentityServer4.EntityFramework。
您必须将IdentityServer4.EntityFrameworkNuGet包添加到您的项目。
| 归档时间: |
|
| 查看次数: |
1030 次 |
| 最近记录: |