[Grok-dev] grok 1.2 and session based auth.

Shrek Zhou zgwmike at gmail.com
Wed Nov 3 13:00:43 EDT 2010


hi, grokkers,

*My problem:*
I can not use PluggableAuthenticationPlugin from zope.pluggableauth to do a
session based auth.

*Steps I took:*
1. added the following lines to my gork.Application:

    grok.local_utility(auth.UserAuthenticatorPlugin,
                       provides=IAuthenticatorPlugin,
                       name='users')
    grok.local_utility(PluggableAuthentication,provides=IAuthentication,
                       setup=auth.setup_authentication,
                       )

2. created corresponding authenticatorPlugin and credentialsPlugin, and add
them to pau through setup_authentication.

*Results*:
The authentication utility is not called at all. only princialRegistry(from
zope.principalregistry which is a globalsite utility that implements
IAuthentication.) works.

Expected:
The local authentication utility should work and substitute the global one.

*How can I fix the above problem??*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/grok-dev/attachments/20101104/f14e234b/attachment.html 


More information about the Grok-dev mailing list