【问题标题】:wso2is on multiple hostnameswso2 在多个主机名上
【发布时间】:2015-03-25 22:07:56
【问题描述】:

考虑将 WSO2 IS 部署为 SAML IdP。但是 - 用户需要从两个独立的网络访问/验证 - 从内部专用网络和外部(公共)互联网。来自专用网络的用户无法访问互联网。有效 - WSO2 IS 将由几个(两个)主机名访问。

我们遇到的问题是,/samlsso 端点将用户重定向到存储库/conf/identity.xml 中定义为 SSOService/IdentityProviderURL 的端点。

因此 - 一组用户将无法访问身份验证端点。

一种解决方案是使用相同的用户存储为内部和外部访问提供单独的实例,但是 - 有没有办法使用单一配置?

提前感谢您的任何提示。

加布里埃尔

【问题讨论】:

  • 只是一个考虑 - 每个主机名的租户不会解决问题吗?

标签: authentication saml wso2is


【解决方案1】:

显然不可能(wso2is-5.0.0)开箱即用

查看 AuthnRequestProcessor 的源代码,强制执行配置的 URL

                // Validate 'Destination'
                String idpUrl = IdentityUtil.getProperty(IdentityConstants.ServerConfig.SSO_IDP_URL);

                if (authnReqDTO.getDestination() == null
                        || !idpUrl.equals(authnReqDTO.getDestination())) {
                    String msg = "Destination validation for Authentication Request failed. " +
                                    "Received: [" + authnReqDTO.getDestination() + "]." +
                                    " Expected: [" + idpUrl + "]";
                    log.warn(msg);
                    return buildErrorResponse(authnReqDTO.getId(),
                            SAMLSSOConstants.StatusCodes.REQUESTOR_ERROR, msg);

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-26
    • 2020-04-17
    • 1970-01-01
    • 1970-01-01
    • 2021-05-06
    • 2020-10-07
    相关资源
    最近更新 更多