dev*_*per 11 c# oauth .net-core identityserver4
我正在尝试使用AddCustomAuthorizeRequestValidator方法来提供自定义声明验证.我甚至无法在ICustomAuthorizeRequestValidator实现中获得断点.我错过了什么吗?
我的断点
ConfigureServices方法代码:
services.AddMvc();
services.AddOptions();
services.AddTransient<ICustomAuthorizeRequestValidator, Saml2BearerValidator>();
services.AddIdentityServer()
.AddTestUsers(Config.GetUsers())
.AddConfigurationStore(builder =>
builder.UseSqlServer(_settings.Value.ConnectionString, options =>
options.MigrationsAssembly(migrationsAssembly)))
.AddOperationalStore(builder =>
builder.UseSqlServer(_settings.Value.ConnectionString, options =>
options.MigrationsAssembly(migrationsAssembly)))
.AddCustomAuthorizeRequestValidator<Saml2BearerValidator>()
.AddSigningCredential(CertificateManager.GetFromStorage(
_settings.Value.ServerCertificateThumb, _settings.Value.ServerCertificatePass));
return services.ConfigureAutofacServicesProvider(_settings.Value.Abc_xacml_n3_diagnostic);
Run Code Online (Sandbox Code Playgroud)
根据 IdentityServer 构建事物的方式,这是否可能是由于您添加该调用的位置所致?
如果 IdentityServer 直接根据您添加的内容构建中间件管道,则可能会在到达管道中的该点之前对其进行处理。
好奇你是否有运气解决这个问题。
| 归档时间: |
|
| 查看次数: |
869 次 |
| 最近记录: |