Results 1 to 2 of 2

Thread: Which Voter Failed

  1. #1
    Join Date
    Dec 2010
    Posts
    1

    Default Which Voter Failed

    Using voters.

    Is there a way to return which voter or voters failed?

    reason I would like to do this, is to return custom failed page to the user.

    Example, maybe they failed because they don't exist in our database.

    Or maybe they failed because they don't exist in Enterprise Database.

    Instead of just saying.. Access denied!!

    Id like to say.. Access denied please verify with Enterprise DBA
    or
    Access Denied please request an account at ...

    depending on which voter failed.

  2. #2
    Join Date
    Sep 2004
    Location
    Manchester, NH
    Posts
    1,236

    Default

    You will probably want to implement a custom AccessDecisionManager if you want to know which voter was accepted for a particular authorization decision.
    Peter Mularien | Blog
    Author, Spring Security 3 (Book) - Packt Publishing, Available in print and eBook form
    SCJP 5, Oracle DBA
    Any postings are my own opinion, and should not be attributed to my employer or clients.


Posting Permissions

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