简体   繁体   English

wso2carbon Identity Server SSO重定向到端口9443

[英]wso2carbon Identity Server SSO redirect to port 9443

I'm using wso2 IS 4.8.0, my problem is that when I use the SAML2 SSO, I'm beeing redirect to port 9443 on the browser. 我正在使用wso2 IS 4.8.0,我的问题是当我使用SAML2 SSO时,我正在重定向到浏览器上的端口9443。

I want to be redirected to another port: 80 or 443, because there is an apache that proxies everything. 我想重定向到另一个端口:80或443,因为有一个代理所有东西的Apache。

Is there a configuration to point the rediret to these ports? 是否有将重发器指向这些端口的配置?

Try adding proxyPort to catalina-server.xml which can be found at <IS_HOME>/repository/conf/tomcat folder as follows, 尝试将proxyPort添加到catalina-server.xml ,该文件可在<IS_HOME>/repository/conf/tomcat文件夹中找到,如下所示,

<Connector  protocol="org.apache.coyote.http11.Http11NioProtocol"
            port="9443"
            proxyPort="443"

And you'll need to change redirect url of ssoservice as well which can be found in <IS_HOME>/repository/conf/identity.xml file. 并且您还需要更改ssoservice的重定向URL,该URL可以在<IS_HOME>/repository/conf/identity.xml文件中找到。 Find for <SSOService> tag and edit <IdentityProviderURL> like follows, 查找<SSOService>标记并编辑<IdentityProviderURL> ,如下所示,

<IdentityProviderURL>https://localhost:443/samlsso</IdentityProviderURL>

EDIT : Better to use IdentityProviderURL without the default port . 编辑 :最好在没有默认端口的情况下使用IdentityProviderURL

<IdentityProviderURL>https://localhost/samlsso</IdentityProviderURL>

Since 443 is the default port and there might be validation fails when it redirect to url with port and original request sent without the port. 由于443是默认端口,当它重定向到带端口的url且发送原始请求而不带端口时,验证可能会失败。


HTH, HTH,

DarRay. DarRay。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM