Foros de discusión

How redirect user to his site private page after sso authentication?

Kaouther Ajala, modificado hace 8 años.

How redirect user to his site private page after sso authentication?

New Member Mensajes: 24 Fecha de incorporación: 10/02/15 Mensajes recientes
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!!!!
thumbnail
Meera Prince, modificado hace 8 años.

RE: How redirect user to his site private page after sso authentication?

Liferay Legend Mensajes: 1111 Fecha de incorporación: 8/02/11 Mensajes recientes
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
thumbnail
Huage Chen, modificado hace 8 años.

RE: How redirect user to his site private page after sso authentication?

Junior Member Mensajes: 33 Fecha de incorporación: 18/03/13 Mensajes recientes
Hi,

You can also refer to this thread.
https://www.liferay.com/community/forums/-/message_boards/message/2545138
thanks
Kaouther Ajala, modificado hace 8 años.

RE: How redirect user to his site private page after sso authentication?

New Member Mensajes: 24 Fecha de incorporación: 10/02/15 Mensajes recientes
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
thumbnail
Andrew Jardine, modificado hace 8 años.

RE: How redirect user to his site private page after sso authentication?

Liferay Legend Mensajes: 2416 Fecha de incorporación: 22/12/10 Mensajes recientes
Hi Kaouther,

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 hace 8 años.

RE: How redirect user to his site private page after sso authentication?

New Member Mensajes: 24 Fecha de incorporación: 10/02/15 Mensajes recientes
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!
thumbnail
Andrew Jardine, modificado hace 8 años.

RE: How redirect user to his site private page after sso authentication?

Liferay Legend Mensajes: 2416 Fecha de incorporación: 22/12/10 Mensajes recientes
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"
Jigar N Gajjar, modificado hace 7 años.

RE: How redirect user to his site private page after sso authentication?

Junior Member Mensajes: 71 Fecha de incorporación: 25/12/09 Mensajes recientes
Did you get any solution for this?
I am in Same boat now.
thumbnail
Andrew Jardine, modificado hace 7 años.

RE: How redirect user to his site private page after sso authentication?

Liferay Legend Mensajes: 2416 Fecha de incorporación: 22/12/10 Mensajes recientes
Have you tried using the default.landing.page with a value of

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).