使用Spring SAML实现时,是否可以禁用范围标签

发布于 2025-02-13 11:35:28 字数 143 浏览 3 评论 0原文

Azure不支持范围的几个选项,看来ProxyCount是其中之一。默认情况下,ProxyCount作为范围标签的一部分发送,无论是否将其设置为0。

是否有一种方法可以禁用ProxyCount选项,以免范围发送,或者发现另一种方法可以使用Azure使用范围?

Azure does not support several options for SCOPING and it appears that ProxyCount is one of them. ProxyCount is sent as part of the SCOPING tag by default with Spring SAML no matter if it is set to 0 or not.

Is there a way to disable the ProxyCount option from being sent with SCOPING or is there another workaround found to use SCOPING with Azure?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寄人书 2025-02-20 11:35:28

我遇到了同样的问题,并且正在使用一个没有Spring Boot并使用XML进行配置的旧应用程序,但是我通过编辑以下bean并设置inclage inclage copeping来删除范围标签。属性属于false

如果您使用的是Spring Boot或Java配置,则可能有类似的东西。

<!-- Entry point to initialize authentication, default values taken from properties file -->
<bean id="samlEntryPoint" class="org.springframework.security.saml.SAMLEntryPoint">
    <property name="defaultProfileOptions">
        <bean class="org.springframework.security.saml.websso.WebSSOProfileOptions">
            <property name="includeScoping" value="false"/>
        </bean>
    </property>
</bean>

一旦删除了示波标签,SAML SSO集成与Azure工作。

I had the same problem and am working with a legacy application that doesn't have Spring Boot and uses XML for the configuration but I got it to remove the scoping tag by editing the following bean and setting the includeScoping property to false.

If you are using Spring Boot or Java configurations there is probably something similar to this.

<!-- Entry point to initialize authentication, default values taken from properties file -->
<bean id="samlEntryPoint" class="org.springframework.security.saml.SAMLEntryPoint">
    <property name="defaultProfileOptions">
        <bean class="org.springframework.security.saml.websso.WebSSOProfileOptions">
            <property name="includeScoping" value="false"/>
        </bean>
    </property>
</bean>

Once the scoping tag was removed the SAML SSO integration with Azure worked.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文