Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
Rodette Pedro
Cannot Logout in Liferay when using Basic Authentication with Tomcat
February 20, 2012 1:51 AM
Answer

Rodette Pedro

Rank: New Member

Posts: 6

Join Date: February 20, 2012

Recent Posts

Hi All,

We have configured our Liferay 6.0.6 portal to use basic authentication with Tomcat 6.0.29. Basically, we want all the pages of the portal to be protected for the moment while the site is under construction. Currently, users are not logged out when they click on the Sign Out link.

Thanks.
Olaf Kock
RE: Cannot Logout in Liferay when using Basic Authentication with Tomcat
February 20, 2012 4:57 AM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1581

Join Date: September 23, 2008

Recent Posts

I guess you're running into the basic problem with basic authentication: The authentication is sent by the browser and AFAIK there's no way to tell it to stop this. This means that you are logged out when you click on "Sign out", but as the next request contains the basic auth parameters (username/password), you're immediately logged in again. Of course, this looks like you never get logged out in the first place.
Peter Hellstrand
RE: Cannot Logout in Liferay when using Basic Authentication with Tomcat
March 25, 2012 12:25 PM
Answer

Peter Hellstrand

Rank: Regular Member

Posts: 167

Join Date: November 30, 2011

Recent Posts

How can this be fixed?
Hitoshi Ozawa
RE: Cannot Logout in Liferay when using Basic Authentication with Tomcat
March 25, 2012 2:20 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

How can this be fixed?


Yes, disable Basic Authentication on Tomcat.
Peter Hellstrand
RE: Cannot Logout in Liferay when using Basic Authentication with Tomcat
March 31, 2012 12:03 AM
Answer

Peter Hellstrand

Rank: Regular Member

Posts: 167

Join Date: November 30, 2011

Recent Posts

Is this configured on the tomcat server or in the web.xml of your application?
Hitoshi Ozawa
RE: Cannot Logout in Liferay when using Basic Authentication with Tomcat
March 31, 2012 12:16 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

I think it's being set in Tomcat to disable users from accessing the files directly.
Peter Hellstrand
RE: Cannot Logout in Liferay when using Basic Authentication with Tomcat
March 31, 2012 12:21 AM
Answer

Peter Hellstrand

Rank: Regular Member

Posts: 167

Join Date: November 30, 2011

Recent Posts

OK thank you.

Because i did not do anything this problem is default so many people have solved it before?
Hitoshi Ozawa
RE: Cannot Logout in Liferay when using Basic Authentication with Tomcat
March 31, 2012 5:10 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Because i did not do anything this problem is default so many people have solved it before?


Well, then you should have created a new thread because this thread is about not being able to logout after setting up to use Basic Authentication.

If you 're still having problem, create a new thread - don't write to this thread if you haven't set up Basic Authentication on your Tomcat.
Peter Hellstrand
RE: Cannot Logout in Liferay when using Basic Authentication with Tomcat
March 31, 2012 7:27 AM
Answer

Peter Hellstrand

Rank: Regular Member

Posts: 167

Join Date: November 30, 2011

Recent Posts

I tried here

http://www.liferay.com/community/forums/-/message_boards/message/13153304

My problem is that i can log out. The sign in link comes but I still can access the application. I guess i should have been redirected to the sign in page/portlet.