IdentityServer4:是否可以在运行时更改权限?
在我的RP中,我在启动时调用的ConfigureServices方法中定义了权限:IdentityServer4:是否可以在运行时更改权限?,identityserver4,Identityserver4,在我的RP中,我在启动时调用的ConfigureServices方法中定义了权限: public void ConfigureServices(IServiceCollection services) { services.AddAuthentication(options => { options.DefaultScheme = "Cookies"; options.DefaultChallengeScheme = "oidc";
public void ConfigureServices(IServiceCollection services)
{
services.AddAuthentication(options =>
{
options.DefaultScheme = "Cookies";
options.DefaultChallengeScheme = "oidc";
})
.AddCookie("Cookies")
.AddOpenIdConnect("oidc", options =>
{
options.Authority = "http://localhost:5000";
options.ClientId = "MyClient";
options.ResponseType = "code id_token";
// some more config
});
}
以后有可能更改权限吗
用例:IdP可能会重新启动,现在正在另一个端口上侦听,甚至在另一台机器上侦听。RP可以通过询问服务发现来找到正确的地址,但是我可以告诉中间件权限的新位置吗?您在这方面有什么进展吗?