Re: WO-Java Client Newbie Question

Des Oates <[email protected]>
Newsgroups gmane.comp.web.webobjects.newbies
Message-ID <[email protected]>

--- Benjamin J Doherty <[email protected]> wrote:

> 
> Probably the dilemma you're facing is one where you
> had a 
> task-privilege based system (user can do X but not
> Y) rather than a 
> role based system (user is "Staff" which has these
> privileges) already 
> thought out?  You probably want a role based system
> anyway, because 
> this more closely resembles an LDAP schema's
> organizational units.  

Well in truth a role based system is what we
originally envisioned for this.

Unfortunately it's further complicated in my case
since the original authentication design called for a
users role to be an attribute not of the user, but an
attribute of the _relationship_ between the user and a
project. (I.e. The requirement is that a user could
potentially have differing roles depending on the
project he logs into. ) So in implementation,  the
User would have to authenticate against his User
entity, AND the project he is working on, before the
system can establish his role, and hence present a
tailored UI. 

But as you can imagine that seems like a 'giant leap
for mankind' from where I am- and I'm still here
trying to complete my 'small step for man' :-) 

And you are also correct in your assumption that I do
(eventually) want to authenticate against LDAP, but
I'll settle for authenticating against plain old
tables for now.

> But what you should recognize is that if you already
> had set up a User 
> entity that had a login and password, you're already
> set up for 
> JCAuthentication.framework.  All you need to do is
> get that custom EO 
> logic in the User class that creates the defaults
> for you on a user's 
> first login.

Well yes, at least this is the case. All this stuff is
already set up. After working through it for most of
today, I've almost got it running.   Hopefully
tomorrow....

Cheers
Des




		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/webobjects-newbies/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.