如何在 SAML 2 中设置 RelayState

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

您好,我正在使用版本 5.7.6 的 saml,并且想要设置继电器状态。

  • setRelayStateResolver(this::resolveCustomRelayState)
    中没有
    OpenSaml4AuthenticationRequestResolver

  • 接口
  • resolve()

    Saml2AuthenticationRequestResolver
    方法具有返回类型
    T extends AbstractSaml2AuthenticationRequest
    并且
    AbstractSaml2AuthenticationRequest
    不符合在构造函数上具有默认范围的包外部继承的资格。

同样在

OpenSamlAuthenticationRequestResolver
relayState
中设置为
String relayState = UUID.randomUUID().toString();
这是没有用的。

spring spring-boot saml-2.0
1个回答
0
投票

我注意到这个话题已经开放了一段时间了。从那时起您是否已经成功解决了您的问题,能否告诉我?泰

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