Repost since I accidentally posted to the wrong thread the first time:
I've often thought that a good spinoff project from JSecurity would be
a UI
and infrastructure for managing users, roles, permissions, etc. I've
always
viewed it as something that would be a separate project that depends
on the
JSecurity core. Every project with security has to manage the users
somehow, so why not have an OS project that lets you manage it all out
of
the box?
I'm not sure whether the infrastructure to mutate users, etc. belongs in
the JSecurity core or in a separate sub-project. If it did, I could see
something like a MutableRealm interface. But I don't know if we want to
make those kind of assumptions about the underlying model. I'd be more
comfortable making those assumptions in a sub-project that was
optional and
was intended to get basic security up and running quickly. (useful for
simple web apps or for the beginning stages of advanced web apps)
Heck, I
wish I had a simple UI for editing roles and permissions for my
application
at work right now!
Ideas?
Jeremy
On Jul 18, 2008, at 9:35 AM, Les Hazlewood wrote:
If we can do it in such a way that it is applicable for any
environment, I'd
love it. Because Realms abstract JSecurity away from the
application's
domain model, it might be tricky to do this in a clean manner.
For example, you could pass in an Account object to the realm to be
created. But that might mean that the application's domain object
would
have to implement our Account interface - not something that is
considered a
best practice (embedding a framework's interfaces in your core domain
model). Realms were created for this purpose - to prevent this tight
coupling.
But, I'm of course open to ideas - maybe what you describe is
perfectly
suitable for simplified environments, maybe where people have text-
based or
file-based realms and don't want to create user/role/permission
objects from
scratch.
In any case, I definitely look forward to it. Could you please
create a
Jira issue at https://issues.apache.org/jira/browse/JSEC and attach
a patch?
Thanks!
Les
On Thu, Jul 17, 2008 at 11:56 PM, Dain Sundstrom <[EMAIL PROTECTED]>
wrote:
We're planning on using JSecurity in some REST applications. Most of
JSecurity should work for us out-of-the-box with the exception that
we need
our basic realms (text and database) to be mutable at runtime, so
we can
provide simple user management functions for standalone environments.
I have been looking at the realm implementations and don't think it
will be
difficult to add support for runtime mutability of simple
user->role->permission mappings. Is this something the project
would be
interested in as a contribution?
-dain