-
Jan 28th, 2011, 09:39 AM
#1
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.
-
Jan 28th, 2011, 11:44 PM
#2
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
-
Forum Rules