【问题标题】:Can I limit the amount of claims received in my SP?我可以限制在我的 SP 中收到的索赔数量吗?
【发布时间】:2018-10-02 11:43:37
【问题描述】:

我有一个 MVC 应用程序,它使用外部 Idp 通过 SAML 对用户进行身份验证。我的应用正在使用sustainsys-SAML2。 Idp 有不同的登录方式,其中一种方式的 Saml-resonse 非常大,它会创建大量的 fedAuth-cookies,这会使标头太大,我会得到一个 400-headear 太大。 由于我对 Idp 没有任何控制权并且它在其他应用程序中使用,我想知道在我的应用程序中是否有办法限制我想要接收的声明/属性,因为我不需要所有额外的信息为我的应用?

【问题讨论】:

    标签: cookies saml-2.0 sustainsys-saml2


    【解决方案1】:

    您可以尝试使用您的 SAML 元数据来限制它:

    <md:AttributeConsumingService index="1">
       <md:ServiceName xml:lang="en-US">your service name</md:ServiceName>
       <md:ServiceDescription xml:lang="en-US">your service description</md:ServiceDescription>
       <md:RequestedAttribute Name="string">
          <saml:AttributeValue>any content</saml:AttributeValue>
       </md:RequestedAttribute>
    </md:AttributeConsumingService>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-02-05
      • 2020-10-01
      • 2021-06-14
      • 2012-02-27
      • 2012-08-22
      • 2012-12-23
      • 2022-06-10
      相关资源
      最近更新 更多