【问题标题】:IdenitityServer WsFederation ClaimsIdentityServer4 Ws 联合声明
【发布时间】:2015-07-07 12:44:30
【问题描述】:

我正在使用 WsFederation 协议使用外部 IdentityProvider 设置 IdentityServerv3。

为了添加提供者,我使用了以下代码,但我不明白如何阅读声明,例如此提供者返回的姓名、名字、照片。

var eContract = new WsFederationAuthenticationOptions
{
    AuthenticationType = "EId",
    Caption = "E-Id",
    SignInAsAuthenticationType = signInAsType,
    MetadataAddress =
        "https://www.e-contract.be/eid-idp/endpoints/ws-federation/metadata/auth-ident-metadata.xml",
    Wtrealm = "https://localhost:44333/core",
};
app.UseWsFederationAuthentication(eContract);

我知道例如照片应该是 be:fedict:eid:idp:photo

【问题讨论】:

    标签: ws-federation claims eid identityserver3


    【解决方案1】:

    你需要实现一个 IUserService 来处理外部提供者。

    https://identityserver.github.io/Documentation/docs/advanced/userService.html

    【讨论】:

      猜你喜欢
      • 2018-04-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-26
      • 1970-01-01
      • 1970-01-01
      • 2019-07-21
      • 2020-08-20
      相关资源
      最近更新 更多