Foros de discusión

Liferay with Facebook SSO

thumbnail
Tonu Sri, modificado hace 11 años.

Liferay with Facebook SSO

Regular Member Mensajes: 197 Fecha de incorporación: 15/04/11 Mensajes recientes
Hi,

I have configured Liferay with Facebook for SSO. I am able to login in Liferay successfully with Facebook credentials.

But I am facing issue while logging out from Liferay. When i logout from Liferay, still my facebook session is existing so next time Liferay authenticate on only clicking on Sign In link.

I can understand that Liferay class ( FaceBookAutoLogin.java) reads session and allow you to login. But its not secure, lets if someone login in Liferay, In second tab he will be automatically login in liferay.

Can we stop this funcationality?

Thanks:
Tonu
thumbnail
Corné Aussems, modificado hace 11 años.

RE: Liferay with Facebook SSO

Liferay Legend Mensajes: 1313 Fecha de incorporación: 3/10/06 Mensajes recientes
Hi Tonu,

Good question!
What you could do is write up your own logout.events.post action.
Removing the session attributes that have been set in FaceBookConnectAction

	
        public static final String FACEBOOK_ACCESS_TOKEN = "FACEBOOK_ACCESS_TOKEN";

	public static final String FACEBOOK_USER_EMAIL_ADDRESS = "FACEBOOK_USER_EMAIL_ADDRESS";

	public static final String FACEBOOK_USER_ID = "FACEBOOK_USER_ID";
thumbnail
Tonu Sri, modificado hace 11 años.

RE: Liferay with Facebook SSO

Regular Member Mensajes: 197 Fecha de incorporación: 15/04/11 Mensajes recientes
Hi Corné,

Thanks for your reply.

Can you please elaborate about steps.
I cannot modify FaceBookConnectAction without EXT Plugin.

then how will it work??

Thanks:
Tonu
thumbnail
Corné Aussems, modificado hace 11 años.

RE: Liferay with Facebook SSO

Liferay Legend Mensajes: 1313 Fecha de incorporación: 3/10/06 Mensajes recientes
You need to create a properties hook;

Add your own logout action, see for an example the DefaultLogoutPageAction register this on the property logout.events.post

Within YourLogoutPageAction remove the session attributes