RE: [PEAR-DEV] New Package Proposal: Enterprise A&A
| From: | Tony Bibbs | Date: | Tue, 14 Jan 2003 22:33:03 +0000 |
| Subject: | RE: [PEAR-DEV] New Package Proposal: Enterprise A&A | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-12450@lists.php.net to get a copy of this message | ||
See, I have two user object. One on the client that is basically a pass
thru to the Interface that talks to the server. On the service end there
is a user object as well with similar function prototypes as the client.
At first glance one could justify the existence of such an object..I mean,
why have a command->user->provider structure when you could just have the
command->provider. The answer is the user object could be seriailzed
along with some token on the server to support single sign-on. Once
serialized subsequent request by other apps just get the object in memory.
--Tony
On Tue, 14
Jan 2003, Lukas Smith wrote:
> > -----Original Message-----
> > From: Tony Bibbs [mailto:tony@tonybibbs.com]
> > Sent: Tuesday, January 14, 2003 11:23 PM
> > To: Lukas Smith
> > Cc: 'Roberto Bertó'; 'PEAR Development'
> > Subject: RE: [PEAR-DEV] New Package Proposal: Enterprise A&A
> >
> > Basically you are saying you want to cache the results to avoid
> recursive
> > calls later on unless some admin makes a change. That I fully agree
> with.
>
> Yeah this is the only way you can get away with adding something like
> implied rights or other more advanced features.
>
> Basically you are doing classic denormalization:
> Trade storage space and update speed for faster read speed.
>
> For data that is complex to fetch from the normalized source and that
> sees a lot more reads than updates, such as this, it makes a lot of
> sense.
>
> LiveUser currently only stores the serialized permission array during
> the life of a session. I would love to change this that the permission
> array is serialized at first use and then whenever the underlying data
> changes it is regenerated.
>
> Regards,
> Lukas
>
>
>
--
------------------------------------------------------------------------|
Tony Bibbs | "I guess you have to remember that those who don't |
tony@tonybibbs.com | hunt or fish often see those of us who do as |
| harmlessly strange and sort of amusing. When you |
| think about it, that might be a fair assessment." |
| --Unknown |
------------------------------------------------------------------------|