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

Christian Klinger cklinger at novareto.de
Wed Nov 3 17:33:30 EDT 2010


Hey Shrek,

we currently working on this problem... It seems that giving
some basic groups to users does not work as expected.

I hope we will come up with a solution the next days...

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