ITFOxTec.Identity.Saml2 库是否支持 SAML 响应和断言签名?

问题描述 投票:0回答:1

我使用 okta 作为我的 IDP,当我尝试同时签署响应和断言签名时,我发现它不支持。如果 ITFoxTec 库支持同时签署 SAML 响应和断言,我需要一些示例或样本。

我想同时签署 SAML 响应和断言。

saml saml-2.0 okta itfoxtec-identity-saml2
1个回答
0
投票

如果 Okta 是您的 IdP,则 Okta 是签署响应和断言的人。 ITfoxtec Identity SAML2 库支持同时验证响应和断言上的签名。

作为 IdP,ITfoxtec Identity SAML2 库还可以同时对响应和断言进行签名。使用 Saml2Configuration.AuthnResponseSignType 属性进行配置:

services.BindConfig<Saml2Configuration>(Configuration, "Saml2", (serviceProvider, saml2Configuration) =>
{
  ...
  AuthnResponseSignType = Saml2AuthnResponseSignTypes.SignAssertionAndResponse;
  ...

  return saml2Configuration;
});     
TestWebAppCore 示例中的

配置

© www.soinside.com 2019 - 2024. All rights reserved.