[Grok-dev] grok 1.2 and session based auth.
Jeffrey D Peterson
bgpete at gmail.com
Wed Nov 3 13:49:59 EDT 2010
There is a bug, it's been documented.
You need to include zope.pluggableauth in your setup.py in install_requires
and rerun buildout. This will work around the bug.
Hopefully that's the issue, otherwise, we'll have to look closer.
--
Jeffrey Peterson
bgpete3 at gmail.com
From: grok-dev-bounces at zope.org [mailto:grok-dev-bounces at zope.org] On Behalf
Of Shrek Zhou
Sent: Wednesday, November 03, 2010 12:01 PM
To: grok-dev at zope.org
Subject: [Grok-dev] grok 1.2 and session based auth.
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/20101103/1f4d5f03/attachment.html
More information about the Grok-dev
mailing list