Fórum
After Logout redirect to Http
Samir Issa, modificado 12 Anos atrás.
After Logout redirect to Http
New Member Postagens: 21 Data de Entrada: 01/04/11 Postagens Recentes
Hi ,
i´m trying redirect toimcat to http , after logout , i´m using Tomcat 7.0.19 with Liferay Portal Community Edition 6.0.6 CE and jdk 1.6.0.26.
My redirect to HTTPS is ok , i`m using :
company.security.auth.requires.https=true
web.server.https.port=443
web.server.http.port=80
and in web.xml
<security-constraint>
<web-resource-collection>
<web-resource-name>Login</web-resource-name>
<url-pattern>/my-portal</url-pattern> <--- ITs my page to login
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>Home</web-resource-name>
<url-pattern>/home</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
In server.xml :
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="443" URIEncoding="UTF-8" />
<Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keystoreFile="conf/keystore" keystorePass="goku2008" URIEncoding="UTF-8"/>
_____________________________________________________________
Now i need what Tomcat return to HTTP to after logout !!
Thanks anybody for help !!
i´m trying redirect toimcat to http , after logout , i´m using Tomcat 7.0.19 with Liferay Portal Community Edition 6.0.6 CE and jdk 1.6.0.26.
My redirect to HTTPS is ok , i`m using :
company.security.auth.requires.https=true
web.server.https.port=443
web.server.http.port=80
and in web.xml
<security-constraint>
<web-resource-collection>
<web-resource-name>Login</web-resource-name>
<url-pattern>/my-portal</url-pattern> <--- ITs my page to login
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>Home</web-resource-name>
<url-pattern>/home</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
In server.xml :
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="443" URIEncoding="UTF-8" />
<Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keystoreFile="conf/keystore" keystorePass="goku2008" URIEncoding="UTF-8"/>
_____________________________________________________________
Now i need what Tomcat return to HTTP to after logout !!
Thanks anybody for help !!
David H Nebinger, modificado 12 Anos atrás.
RE: After Logout redirect to Http
Liferay Legend Postagens: 14916 Data de Entrada: 02/09/06 Postagens Recentes
You can use a logout.events.post handler to do a redirect on logout.
Samir Issa, modificado 12 Anos atrás.
RE: After Logout redirect to Http
New Member Postagens: 21 Data de Entrada: 01/04/11 Postagens Recentes
Ok ,
i tried default.logout.page.path = http://www.XXX.com and others path , but no redirect in some cases and in other the https was still there .
You are talk about devolper a custom action to logout.events.post=com.liferay.portal.events.LogoutPostAction ????
and how can i do that ??
thanks !
i tried default.logout.page.path = http://www.XXX.com and others path , but no redirect in some cases and in other the https was still there .
You are talk about devolper a custom action to logout.events.post=com.liferay.portal.events.LogoutPostAction ????
and how can i do that ??
thanks !
David H Nebinger, modificado 12 Anos atrás.
RE: After Logout redirect to Http (Resposta)
Liferay Legend Postagens: 14916 Data de Entrada: 02/09/06 Postagens Recentes
default.logout.page.path only works for local redirects, not for external redirects.
Yes you'd have to create a LogoutPostAction implementation to handle this. Check the DefaultLogoutPageAction for an example of what you'd need to do...
Yes you'd have to create a LogoutPostAction implementation to handle this. Check the DefaultLogoutPageAction for an example of what you'd need to do...
Víctor Salvans Montesó, modificado 11 Anos atrás.
RE: After Logout redirect to Http
New Member Postagens: 7 Data de Entrada: 04/12/12 Postagens Recentes
I'm working on a portal Liferay 6.0.5 with lots of communities (websites for me). I need to set a "after logout url" for each community. All the posts talk about a server solution but not a community. Is any easy way to do it without change server settings, because I can't access to them, and I can redirect others community's users to the same place!.
Any link like /c/portal/logout?redirect=specific_url is possible????
Thanks!
Any link like /c/portal/logout?redirect=specific_url is possible????
Thanks!
Samir Issa, modificado 11 Anos atrás.
RE: After Logout redirect to Http
New Member Postagens: 21 Data de Entrada: 01/04/11 Postagens Recentes
Hi ,
i think that is not possible , because you need set the class ,in server properties,to redirect after logout
Thanks
i think that is not possible , because you need set the class ,in server properties,to redirect after logout
Thanks
Jack Bakker, modificado 11 Anos atrás.
RE: After Logout redirect to Http
Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
below is from my hook LogoutPreAction where I set after logout redirect somwhere if a user is in a particular role ; perhaps you can use something similar for a community
long companyId = com.liferay.portal.util.PortalUtil.getCompanyId(request);
long userId = com.liferay.portal.util.PortalUtil.getUserId(request);
long roleId = RoleLocalServiceUtil.getRole(companyId, "role_name").getRoleId();
if(UserLocalServiceUtil.hasRoleUser(roleId,userId)){
request.setAttribute(WebKeys.REFERER, "/web/somewhere");
}