Results 1 to 5 of 5

Thread: What's available after access denied?

  1. #1
    Join Date
    Aug 2004
    Location
    New York, NY
    Posts
    46

    Default What's available after access denied?

    I haven't dug too deep into this yet, but I was wonder what information was still available after an "Access Denied" decision? Is the Authentication object still available?

    Reason being, I want to log in the database the fact that someone attempted to access a loction they were not granted access to.

    My gut tells me the authentication object is still there, but I just wanted to get some confirmation.

    Thanks,
    Patrick

  2. #2
    Join Date
    Aug 2004
    Location
    New York, NY
    Posts
    46

    Default Re: What's available after access denied?

    Quote Originally Posted by pburleson
    I haven't dug too deep into this yet, but I was wonder what information was still available after an "Access Denied" decision? Is the Authentication object still available?

    Reason being, I want to log in the database the fact that someone attempted to access a loction they were not granted access to.

    My gut tells me the authentication object is still there, but I just wanted to get some confirmation.

    Thanks,
    Patrick
    Well, my gut was wrong...I see that the Authentication object is removed from the SecureContext before giving an access denied error.

    Hmm, is the Authenticated object still in the "Well Known Location" in the session? Somewhat of a rhetorical question as I'm about to find out.

    Patrick

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

    Default

    Yes, the Authentication will still be available in the well-known location.

    I've added to my TODO list to put the AccessDeniedException into the HttpSession, so you can display the line number etc on the SC_FORBIDDEN (403) page.

  4. #4
    Join Date
    Aug 2004
    Location
    New York, NY
    Posts
    46

    Default

    Thanks Ben.

    I probably shouldn't have even asked the question without experimenting a little. I was definitely able to get the Authentication object.

    Patrick

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

    Default

    I've just committed this change to SecurityEnforcementFilter to CVS.

Similar Threads

  1. Access is denied (user is not anonymous)
    By matthewramella in forum Security
    Replies: 7
    Last Post: Feb 28th, 2008, 10:02 PM
  2. Problem with HibernateInterceptor
    By prane in forum Data
    Replies: 5
    Last Post: Oct 16th, 2007, 08:01 AM
  3. Replies: 2
    Last Post: Oct 17th, 2005, 04:29 AM
  4. Replies: 4
    Last Post: Apr 4th, 2005, 02:28 AM
  5. How do I log access denied (403) error ?
    By pavelj in forum Security
    Replies: 5
    Last Post: Oct 30th, 2004, 01:00 AM

Posting Permissions

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