You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Arun Kumar <ar...@gmail.com> on 2009/03/05 13:14:34 UTC

JRoller with CAS (jdbc) : logout problem.

Hi,



I am trying to use JRoller with CAS and jdbc. I got most of the stuff
working, but once I am logged in, I can't log out. When I click logout it
takes me to page having a login link. But when I click the login link, the
page just refreshes with me logged in, without displaying the cas login
page. Can anyone tell me what I am doing wrong??

The steps I followed are mentioned here
http://arunk3.wordpress.com/2009/03/05/roller-cas-jdbc/



Versions used :

1) apache-roller-4.0.1.zip
2) cas-server-3.3.1-release.zip
3) apache-tomcat-6.0.16.exe
4) cas-client-3.1.3-release.zip
5) mysql-5.0.67-win32.zip
6) spring-jdbc.jar, commons-dbcp-1.2.2.jar, commons-pool-1.4.jar,
mysql-connector-java-5.1.7-bin.jar


PFA my configuration files.

C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\server.xml

C:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps\roller\WEB-INF\security.xml

C:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps\cas\WEB-INF\deployerConfigContext.xml

C:\Program Files\Apache Software Foundation\Tomcat
6.0\lib\roller-custom.properties

Re: JRoller with CAS (jdbc) : logout problem.

Posted by Arun Kumar <ar...@gmail.com>.
It’s a cookie problem.

CAS after successful authentication adds a cookie and logout jsp of roller
delete another cookie.

I don’t think roller can delete the cookie added by CAS server.

Anyways, I got logout working by modifying the below files.

Basically roller on redirect calls cas/logout as suggested by Henning, then
CAS server after logout calls roller.



1) <roller war path>\roller-ui\logout-redirect.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8" %>

<%@ page import="org.apache.roller.weblogger.ui.core.RollerSession" %>

<%

      request.getSession().removeAttribute(RollerSession.ROLLER_SESSION);

      request.getSession().invalidate();

      response.sendRedirect("https://localhost:8443/cas/logout");

%>



2) <cas server war path>\WEB-INF\view\jsp\default\ui\casLogoutView.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8" %>

<%

      response.sendRedirect("https://localhost:8443/roller");

%>



Thanks,

Arun Kumar

On Thu, Mar 5, 2009 at 6:46 PM, Henning Brune <
henning.brune@uni-bielefeld.de> wrote:

> I guess this is because the CAS ticket/login is stored in your browser
> session. As far as I understand it this is a setting in the CAS
> service. You should be able to enforce a logout by a direct call to
> https://youCASServer/cas/logout
>
> -Henning
>
> On Thu, Mar 5, 2009 at 1:14 PM, Arun Kumar <ar...@gmail.com> wrote:
> > Hi,
> >
> >
> >
> > I am trying to use JRoller with CAS and jdbc. I got most of the stuff
> > working, but once I am logged in, I can't log out. When I click logout it
> > takes me to page having a login link. But when I click the login link,
> the
> > page just refreshes with me logged in, without displaying the cas login
> > page. Can anyone tell me what I am doing wrong??
> >
> > The steps I followed are mentioned here
> > http://arunk3.wordpress.com/2009/03/05/roller-cas-jdbc/
> >
> >
> >
> > Versions used :
> >
> > 1) apache-roller-4.0.1.zip
> > 2) cas-server-3.3.1-release.zip
> > 3) apache-tomcat-6.0.16.exe
> > 4) cas-client-3.1.3-release.zip
> > 5) mysql-5.0.67-win32.zip
> > 6) spring-jdbc.jar, commons-dbcp-1.2.2.jar, commons-pool-1.4.jar,
> > mysql-connector-java-5.1.7-bin.jar
> >
> > PFA my configuration files.
> >
> > C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\server.xml
> >
> > C:\Program Files\Apache Software Foundation\Tomcat
> > 6.0\webapps\roller\WEB-INF\security.xml
> >
> > C:\Program Files\Apache Software Foundation\Tomcat
> > 6.0\webapps\cas\WEB-INF\deployerConfigContext.xml
> >
> > C:\Program Files\Apache Software Foundation\Tomcat
> > 6.0\lib\roller-custom.properties
> >
>
>
>
> --
> Dipl.-Inform. Henning Brune
>
> http://ekvv.uni-bielefeld.de/pers_publ/publ/PersonDetail.jsp?personId=10185
>
> Universität Bielefeld
> Projekt BIS
> Postfach 10 01 31
> D-33501 Bielefeld
>
> Die neue Homepage des BIS Projektes:
> http://www.uni-bielefeld.de/bis/
>

Re: JRoller with CAS (jdbc) : logout problem.

Posted by Henning Brune <he...@uni-bielefeld.de>.
I guess this is because the CAS ticket/login is stored in your browser
session. As far as I understand it this is a setting in the CAS
service. You should be able to enforce a logout by a direct call to
https://youCASServer/cas/logout

-Henning

On Thu, Mar 5, 2009 at 1:14 PM, Arun Kumar <ar...@gmail.com> wrote:
> Hi,
>
>
>
> I am trying to use JRoller with CAS and jdbc. I got most of the stuff
> working, but once I am logged in, I can't log out. When I click logout it
> takes me to page having a login link. But when I click the login link, the
> page just refreshes with me logged in, without displaying the cas login
> page. Can anyone tell me what I am doing wrong??
>
> The steps I followed are mentioned here
> http://arunk3.wordpress.com/2009/03/05/roller-cas-jdbc/
>
>
>
> Versions used :
>
> 1) apache-roller-4.0.1.zip
> 2) cas-server-3.3.1-release.zip
> 3) apache-tomcat-6.0.16.exe
> 4) cas-client-3.1.3-release.zip
> 5) mysql-5.0.67-win32.zip
> 6) spring-jdbc.jar, commons-dbcp-1.2.2.jar, commons-pool-1.4.jar,
> mysql-connector-java-5.1.7-bin.jar
>
> PFA my configuration files.
>
> C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\server.xml
>
> C:\Program Files\Apache Software Foundation\Tomcat
> 6.0\webapps\roller\WEB-INF\security.xml
>
> C:\Program Files\Apache Software Foundation\Tomcat
> 6.0\webapps\cas\WEB-INF\deployerConfigContext.xml
>
> C:\Program Files\Apache Software Foundation\Tomcat
> 6.0\lib\roller-custom.properties
>



-- 
Dipl.-Inform. Henning Brune

http://ekvv.uni-bielefeld.de/pers_publ/publ/PersonDetail.jsp?personId=10185

Universität Bielefeld
Projekt BIS
Postfach 10 01 31
D-33501 Bielefeld

Die neue Homepage des BIS Projektes:
http://www.uni-bielefeld.de/bis/