WSO2 SSO always redirects to localhost:9443/samlsso

走远了吗. 提交于 2019-12-11 03:05:05

问题


I'm using WSO2 identity server (on port 9443) and enterprise service bus (ESB, on port 9444). I configured ESB to use IS SSO. But everytime I try to login into ESB it redirects me to IS and there it redirects me to URL localhost:9443/samlsso.

I already tried changing this URL in identities.xml and carbon.xml without access.

Where can I configure the redirection address?

In carbon.xml I specified the hostname as "HostName" and "MgtHostName". But IS still uses localhost.

Thanks!


回答1:


Ok, I found a solution.

I did a search+replace over all XML documents inside the IS and ESB package and replaced all "localhost" by my hostname.




回答2:


WSO2 has a script located at:
<IOTS_HOME>/scripts

run
./change-ip.sh

Tip: The script will find and replace the IP address given in argument1 (localhost) with the IP address given as argument2 (10.10.10.14), in the necessary configuration files.

Check Docs to configure Hostname




回答3:


In the identity.xml there's a SSOService/IdentityProviderURL tag, that one seems important for SAML authentication.




回答4:


carbon.xml file under /repository/conf folder.

Change <HostName>localhost</HostName> to your IP.

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



回答5:


SSO configuration should in /repository/conf/security/authenticators.xml as follows to change the hostname of redirection url of Identity Server,

<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>


来源:https://stackoverflow.com/questions/28853721/wso2-sso-always-redirects-to-localhost9443-samlsso

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!