Fórum
How redirect user to his site private page after sso authentication?
Kaouther Ajala, modificado 8 Anos atrás.
How redirect user to his site private page after sso authentication?
New Member Postagens: 24 Data de Entrada: 10/02/15 Postagens Recentes
Hi,
I'm using Liferay 6.2 Ga4, i connect to my site using sso authentication, i have many
sites and i want to redirect every user to his appropraite site after successful logging in with sso?
to do this i use custom landing page hook ,it works when i use liferay authentication but when i integrate sso authentication user is never redirected to his own
site.
Please help me it is urgent!!!!
I'm using Liferay 6.2 Ga4, i connect to my site using sso authentication, i have many
sites and i want to redirect every user to his appropraite site after successful logging in with sso?
to do this i use custom landing page hook ,it works when i use liferay authentication but when i integrate sso authentication user is never redirected to his own
site.
Please help me it is urgent!!!!
Meera Prince, modificado 8 Anos atrás.
RE: How redirect user to his site private page after sso authentication?
Liferay Legend Postagens: 1111 Data de Entrada: 08/02/11 Postagens Recentes
Hi
Have you keep CAS service URL empty and Please make it empty,
this link about landing page discussion please have look it may help you..
https://www.liferay.com/community/forums/-/message_boards/message/34687644
Regards,
Meera prince
Have you keep CAS service URL empty and Please make it empty,
this link about landing page discussion please have look it may help you..
https://www.liferay.com/community/forums/-/message_boards/message/34687644
Regards,
Meera prince
Huage Chen, modificado 8 Anos atrás.
RE: How redirect user to his site private page after sso authentication?
Junior Member Postagens: 33 Data de Entrada: 18/03/13 Postagens Recentes
Hi,
You can also refer to this thread.
https://www.liferay.com/community/forums/-/message_boards/message/2545138
thanks
You can also refer to this thread.
https://www.liferay.com/community/forums/-/message_boards/message/2545138
thanks
Kaouther Ajala, modificado 8 Anos atrás.
RE: How redirect user to his site private page after sso authentication?
New Member Postagens: 24 Data de Entrada: 10/02/15 Postagens Recentes
Good morning,
I still having the same problem,please can any one help me
i have many sites and i use sso authentication,after successful login user is redirected to default site liferay
but i want to redirect every user to his site(site who is member in).
Thanks please help me i'm blocked
I still having the same problem,please can any one help me
i have many sites and i use sso authentication,after successful login user is redirected to default site liferay
but i want to redirect every user to his site(site who is member in).
Thanks please help me i'm blocked
Andrew Jardine, modificado 8 Anos atrás.
RE: How redirect user to his site private page after sso authentication?
Liferay Legend Postagens: 2416 Data de Entrada: 22/12/10 Postagens Recentes
Hi Kaouther,
Have you tried anything with this property (see the last line that is commented out by default).
I would tried adding this to your portal-ext.properties file, but using the last line (default.landing.page.path=/user/${liferay:screenName}/home) as the setting to see if that gets you what you are after.
Have you tried anything with this property (see the last line that is commented out by default).
##
## Default Landing Page
##
#
# Set the default landing page path for logged in users relative to the
# server path. This is the page users are automatically redirected to after
# logging in. For example, if you want the default landing page to be
# http://localhost:8080/web/guest/login, set this to /web/guest/login. To
# activate this feature, set auth.forward.by.last.path to true. To customize
# the behavior, see com.liferay.portal.events.DefaultLandingPageAction in
# the "login.events.post" property above.
#
# The following variables can be used: ${liferay:screenName} and
# ${liferay:userId}.
#
default.landing.page.path=
#default.landing.page.path=/web/guest/login
#default.landing.page.path=/user/${liferay:screenName}/home
I would tried adding this to your portal-ext.properties file, but using the last line (default.landing.page.path=/user/${liferay:screenName}/home) as the setting to see if that gets you what you are after.
Kaouther Ajala, modificado 8 Anos atrás.
RE: How redirect user to his site private page after sso authentication?
New Member Postagens: 24 Data de Entrada: 10/02/15 Postagens Recentes
Hi Andrew,
Thanks for your interest to my problem,i tried this in portal-ext.properties file, it works when i use liferay authentication
but when i use sso authentication it redirect me to default liferay site not to my site private page or my user private page,
so the problemis how use sso authentication and redirect user to his appropriate site after successful logging in.
please help me to do this.
Thank you very much!
Thanks for your interest to my problem,i tried this in portal-ext.properties file, it works when i use liferay authentication
but when i use sso authentication it redirect me to default liferay site not to my site private page or my user private page,
so the problemis how use sso authentication and redirect user to his appropriate site after successful logging in.
please help me to do this.
Thank you very much!
Andrew Jardine, modificado 8 Anos atrás.
RE: How redirect user to his site private page after sso authentication?
Liferay Legend Postagens: 2416 Data de Entrada: 22/12/10 Postagens Recentes
A few more questions --
1. When you say "sso authentication" which one are you referring to? The OpenSSO settings?
2. Can you share with use the settings you have placed in the control panel?
3. Just to double check, you read the comment above the properties that stated that the setting you applied would only be active if you set auth.forward.by.last.path=true right? I am assuming you did since you said it worked for "regular user logins"
1. When you say "sso authentication" which one are you referring to? The OpenSSO settings?
2. Can you share with use the settings you have placed in the control panel?
3. Just to double check, you read the comment above the properties that stated that the setting you applied would only be active if you set auth.forward.by.last.path=true right? I am assuming you did since you said it worked for "regular user logins"
Jigar N Gajjar, modificado 7 Anos atrás.
RE: How redirect user to his site private page after sso authentication?
Junior Member Postagens: 71 Data de Entrada: 25/12/09 Postagens Recentes
Did you get any solution for this?
I am in Same boat now.
I am in Same boat now.
Andrew Jardine, modificado 7 Anos atrás.
RE: How redirect user to his site private page after sso authentication?
Liferay Legend Postagens: 2416 Data de Entrada: 22/12/10 Postagens Recentes
Have you tried using the default.landing.page with a value of
private page
public page
.. or something like that (depending on whether or not you are using the OOTB features).
private page
/user/${liferay:userId}
public page
/web/${liferay:screenName}/profile
.. or something like that (depending on whether or not you are using the OOTB features).