留言板

How to change default port for CAS redirect

Travis Hardy,修改在7 年前。

How to change default port for CAS redirect

New Member 帖子: 2 加入日期: 17-2-9 最近的帖子
What I am trying to do is change the default port that is used when CAS returns you back to Liferay after you have been authenticated. It always wants to send me back to port 8080, but it should be port 9090. I am running Liferay using the embedded tomcat. I have modified the server.xml file of tomcat so it is running on port 9090 instead of 8080, it just seems that the issue is that when CAS tries to redirect back to Liferay it comes back to 8080 even when I originally came in on 9090. I see this port get changed in the URL string for the service parameter that CAS creates. CAS is running in another tomcat on port 8443. I am using Liferay 7.0-ga3. Below are the values in the Liferay database for my CAS configuration.

enabled=B"false"
importFromLDAP=B"false"
loginURL="https://localhost:8443/cas/login"
logoutOnSessionExpiration=B"false"
logoutURL="https://localhost:8443/cas/logout"
noSuchUserRedirectURL="http://localhost:9090"
serverName="thardy:9090"
serverURL="https://localhost:8443/cas-web"
service.bundleLocation="?"
service.pid="com.liferay.portal.security.sso.cas.configuration.CASConfiguration"
serviceURL="http://localhost:9090"

Any help would be greatly appreciated.