[Grok-dev] grok 1.2 and session based auth.
Christian Klinger
cklinger at novareto.de
Wed Nov 3 19:22:07 EDT 2010
Hi again,
i think you have to include zope.pluggableauth and this zcml-snippet:
<include package="zope.pluggableauth.plugins" file="groupfolder.zcml" />
Maybe you can report if it works for you.
Christian
> 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??_*
>
>
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> https://mail.zope.org/mailman/listinfo/grok-dev
More information about the Grok-dev
mailing list