我正在尝试使用ws-federation来设置对ADFS的身份验证。
services.AddAuthentication(sharedOptions =>
{
sharedOptions.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme;
sharedOptions.DefaultChallengeScheme = WsFederationDefaults.AuthenticationScheme;
})
.AddWsFederation(options =>
{
options.Wtrealm = "https://localhost:44351/";
options.MetadataAddress = "https://xxx/federationmetadata/2007-06/federationmetadata.xml";
})
.AddCookie();有6宗索赔被退回,但我知道还有其他索赔没有退还。例如,claim ( nameidentifier,http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier)。
如何使ADFS返回更多索赔?
发布于 2022-02-02 05:11:30
https://stackoverflow.com/questions/70942753
复制相似问题