留言板
How redirect user to his site private page after sso authentication?
Kaouther Ajala,修改在8 年前。
How redirect user to his site private page after sso authentication?
New Member 帖子: 24 加入日期: 15-2-10 最近的帖子
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,修改在8 年前。
RE: How redirect user to his site private page after sso authentication?
Liferay Legend 帖子: 1111 加入日期: 11-2-8 最近的帖子
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,修改在8 年前。
RE: How redirect user to his site private page after sso authentication?
Junior Member 帖子: 33 加入日期: 13-3-18 最近的帖子
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,修改在8 年前。
RE: How redirect user to his site private page after sso authentication?
New Member 帖子: 24 加入日期: 15-2-10 最近的帖子
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,修改在8 年前。
RE: How redirect user to his site private page after sso authentication?
Liferay Legend 帖子: 2416 加入日期: 10-12-22 最近的帖子
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,修改在8 年前。
RE: How redirect user to his site private page after sso authentication?
New Member 帖子: 24 加入日期: 15-2-10 最近的帖子
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,修改在8 年前。
RE: How redirect user to his site private page after sso authentication?
Liferay Legend 帖子: 2416 加入日期: 10-12-22 最近的帖子
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,修改在7 年前。
RE: How redirect user to his site private page after sso authentication?
Junior Member 帖子: 71 加入日期: 09-12-25 最近的帖子
Did you get any solution for this?
I am in Same boat now.
I am in Same boat now.
Andrew Jardine,修改在7 年前。
RE: How redirect user to his site private page after sso authentication?
Liferay Legend 帖子: 2416 加入日期: 10-12-22 最近的帖子
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).