WSO2 SSO始终重定向到localhost:9443 / samlsso

问题描述 投票:2回答:5

我正在使用WSO2身份服务器(在端口9443上)和企业服务总线(ESB,在端口9444上)。我将ESB配置为使用IS SSO。但每当我尝试登录ESB时,它会将我重定向到IS,并在那里将其重定向到URL localhost:9443 / samlsso。

我已经尝试在不访问的identities.xml和carbon.xml中更改此URL。

我在哪里可以配置重定向地址?

在carbon.xml中,我将主机名指定为“HostName”和“MgtHostName”。但是IS仍然使用localhost。

谢谢!

wso2 single-sign-on wso2esb wso2is
5个回答
1
投票

好的,我找到了解决方案。

我对IS和ESB包中的所有XML文档进行了搜索+替换,并用我的主机名替换了所有“localhost”。


1
投票

WSO2的脚本位于: <IOTS_HOME>/scripts

./change-ip.sh

提示:脚本将在必要的配置文件中查找并替换argument1(localhost)中给出的IP地址,并将IP地址作为参数2(10.10.10.14)。

Check Docs to configure Hostname


0
投票

在identity.xml中有一个SSOService / IdentityProviderURL标记,这对于SAML身份验证似乎很重要。


0
投票

/ repository / conf文件夹下的carbon.xml文件。

<HostName>localhost</HostName>更改为您的IP。

<HostName>x.x.x.x</HostName>

0
投票

SSO配置应该在/repository/conf/security/authenticators.xml中,如下所示更改Identity Server的重定向URL的主机名,

<Authenticator name="SAML2SSOAuthenticator" disabled="false">
    <Priority>1</Priority>
    <Config>
        <Parameter name="LoginPage">/carbon/admin/login.jsp</Parameter>
        <Parameter name="ServiceProviderID">carbonServer</Parameter>
        <Parameter name="IdentityProviderSSOServiceURL">https://<HostNameOfIdentitiyServer>:9443/samlsso</Parameter>
        <Parameter name="NameIDPolicyFormat">urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</Parameter>
        <Parameter name="AssertionConsumerServiceURL">https://<HostNameOfIdentitiyServer>:9443/acs</Parameter>
     </Config>
© www.soinside.com 2019 - 2024. All rights reserved.