Hi,
I haven't had time to read all posts and docs available, so if the
contribution I am trying to make here is already ruled out or available,
apologies in advance.
I put some work into integrating Acegi Security and Hibernate and
am now wondering if and how this could be added to the official project.
My current design certainly cannot, because it is tied to an application
specific service that implements UserDetailsService but has other
irrelevant methods. But changing this should not be much of a problem.
My greatest concerns have to do with how such code would end up
tied to a particular database structure. I have User and Role classes
that implement UserDetails and GrantedAuthority respectively, and some
XDoclet on them mapping to USER and ROLE tables, with an unidirecional
many-to-many relationship defined from User to Role. I can remove the
XDoclet from these classes to allow users to manually write their own
.HBMs for some extra flexibility, but still, doubt this design will suit
all database scenarios.
Does anyone has toughts to share on that? I am sure providing some
support for Hibernate integration would be useful (it would have saved
me about eight hours of work yesterday), but am not sure this could be
done with the needed degree of abstraction yet.
And, in unrelated news, I am also looking for more doc on Acegi
Security taglibs besides authz, for example to retrieve authenticated
user name so I can display it in a welcome message. I will gladly take
RTFM for a reply, if someone will please tell me where to find the FM
:). I have quickly browsed the Reference Guide PDF and found nothing so far.
Cheers,
Guilherme
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer