[Zope-PAS] Re: [RFC] Extending CookieAuthHelper
Jens Vagelpohl
jens at dataflake.org
Thu Nov 18 10:51:51 EST 2004
>>>> It seems that instead of the login method calling updateCredentials
>>>> on the CookieAuthHelper itself, it should inform the PAS instance
>>>> so that the plugins registered for updateCredentials can fire. Am I
>>>> overlooking something?
>>>
>>>
>>> That sounds reasonable to me. Tres and I were discussing that many
>>> of the plugin points need to be surfaced at the PAS level, so it can
>>> fire any interested parties.
>> There are probably a myriad more or less complicated ways to make
>> this happen. One simple way could be to talk to the plugin registry
>> itself and call "listPlugins" with the desired interface to retrieve
>> the active plugins and call updateCredentials on each. Does that
>> sound like a reasonable thing to do inside a plugin (because only PAS
>> itself seeems to work that way now)?
>
> I would add an 'updateCredentials' method to PAS, and have it delegate
> to the plugins.
Last question: do you want me to add something to the public interface
on the PAS instance itself to return the PAS instance, or do you prefer
using aq_parent(aq_inner(self)) in the plugin?
jens
More information about the Zope-PAS
mailing list