Redirect to custom URL after successful login - Websphere

This is a discussion on Redirect to custom URL after successful login - Websphere ; Hi. I'm developing a custom login portlet using the Portal's LoginService. I wanna redirect to the portal page given by a porlet preference's value after a successful login; the value of the preference is the page's unique name. In order ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Redirect to custom URL after successful login

  1. Redirect to custom URL after successful login

    Hi.

    I'm developing a custom login portlet using the Portal's LoginService. I wanna redirect to the portal page given by a porlet preference's value after a successful login; the value of the preference is the page's unique name.

    In order to achieve this I have a custom subclass of com.ibm.wps.engine.commands.LoginUserAuth overriding the doPostLogin method. Inside doPostLogin I'm using the PortalURLGenerationService to generate the URL from the page's unique name, however PortalURLGenerationService doesn't seem to be aware of the authentication context at this point and I'm getting URLs starting with "/wps/portal/..." instead of "/wps/myportal/...".

    Is there any other way to generate the correct URL?


    Thanks in Advance

    Best regards

  2. Re: Redirect to custom URL after successful login

    Hi,

    Use Authentication Filter and redirect to desired portal page after successful login...

    have at look at my article on *[Authentication Filter|http://extremeportal.blogspot.com/20...tion-in.html]*

    many thanks..
    **
    *[Extreme Portal|http://extremeportal.blogspot.com]*

  3. Re: Redirect to custom URL after successful login

    Thanks a lot for the advice, I used Authentication Filter mechanism as mentioned in your article and it works fine.

+ Reply to Thread