Results 1 to 4 of 4

Thread: force login to not go to url maintained in session

  1. #1
    Join Date
    Aug 2004
    Location
    Roselle Park, NJ
    Posts
    167

    Default force login to not go to url maintained in session

    Is there a way to disable the feature that if the last url is known (i.e. you were logged into the app already) upon reauthentication you will redirected to that url. I would like to always go to the URL defined in the config. I couldn't find a way to turn it off though.

    Thanks

  2. #2
    Join Date
    Aug 2004
    Location
    Amsterdam, Netherlands
    Posts
    450

    Default

    AFAIK, this is not part of the specification.

    I've searched for a while and couldn't find a defnitive solution to this problem. Search Google for 'post-authentication servlet' and you'll find some references and mails on the tomcat-user list I believe, maybe they'll be useful to you.

    At first I though it might be possible to do this by detecting if the session associated with the request is new (and if so, check if the appropriate page is going to be displayed), but there's not preventing the container from keeping track of the principal another way...

    Alef
    Alef Arendsen
    SpringSource
    http://www.springsource.com

  3. #3
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    I've just committed an improvement to AbstractProcessingFilter which has a new property, alwaysUseDefaultTargetUrl. I think the property name gives it away.

  4. #4
    Join Date
    Aug 2004
    Location
    Roselle Park, NJ
    Posts
    167

    Default

    Awesome....that's exactly what I was looking for

    I was actually going to do that

    Thanks!

Similar Threads

  1. OpenSessionInView and portlet support
    By garpinc2 in forum Web Flow
    Replies: 31
    Last Post: Apr 9th, 2010, 11:12 AM
  2. OpenSessionInView + CMT Session usage
    By alesj in forum Data
    Replies: 7
    Last Post: Aug 16th, 2005, 02:32 AM
  3. Replies: 3
    Last Post: May 16th, 2005, 07:04 AM
  4. Replies: 1
    Last Post: Mar 12th, 2005, 04:33 AM
  5. Replies: 3
    Last Post: Nov 19th, 2004, 07:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •