|
From: <ty...@me...> - 2005-10-19 20:26:49
|
I have being created a project using ACEGI 0.9.0 SNAPSHOT and
discovered a slight problem. Basically we have our implementation of
UserDetails, and have created a Util class to get our implementation
from the SecurityContext. However there is an issue when a user is an
Anonymous user. When a user is Anonymous the principle is stored as a
string, so when I get our user object there is ClassCastException.
Easy fix right, do a check in our Util class to see if it is a string or
an instance of UserDetails. It does seem a little fugly IMO. Another
option is to extend AnonymousProcessingFilter, which is what I am leaning
towards. However if I change that filter it may be difficult to maintain
in the future, if there are any major changes to ACEGI
It would be nice to have a way inject which implementation of UserDetails
object to use for an Anonymous user.
Are there any plans to add this or something similar to ACEGI in the future?
Regards,
Tyler
|