[Grok-dev] How to do authentication right with Grok

Andreas Jung lists at zopyx.com
Mon Jan 12 03:56:43 EST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12.01.2009 8:55 Uhr, Andreas Jung wrote:
> On 09.01.2009 19:53 Uhr, Martijn Faassen wrote:
>> Hey Andreas,
> 
>> I think this area is ripe for convenience abstractions (and better 
>> documentation), but for now you prompted me into writing this tutorial:
> 
>> http://grok.zope.org/documentation/how-to/authentication-with-grok/
> 
>> I hope people will get together and condense some of this stuff into a 
>> bunch of higher-level abstractions however.
> 
> 
> I followed your documentation and basically copied the code 1:1 into my
> app.py:
> 
> http://zopyx.com/tmp/app.py
> 
> However I can not see that credentials/users plugins are used in any
> way. Even more: the setup_authentication() method is never called
> (neither during the startup phase nor while Grok is running).
> 


Stupid me. Since local utilities are persistent the code is called only
when creating a new instance of the app *banging-my-head-against-the-wall*.

Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAklrBcsACgkQCJIWIbr9KYxo4gCgj00MqDy8yjBep1yp4WCxK0F6
IVAAnR8iLYFR2JJIcrtRdP75z2uyqSeG
=7nvT
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/grok-dev/attachments/20090112/f0062422/attachment.vcf 


More information about the Grok-dev mailing list