User Authentication in Pylons + AuthKit

I am trying to create a web application using Pylons and resources at a web point on a PylonsBook page, which is not much help. I want authentication and authorization, and still, to configure Authkit to work with Pylons?

I tried downloading SimpleSiteTemplate from the cheeseshop, but was unable to run the setup-app command. This causes an error:

File "/home/cnu/env/lib/python2.5/site-packages/SQLAlchemy-0.4.7-py2.5.egg/sqlalchemy/schema.py", line 96, in __call__ table = metadata.tables[key] AttributeError: 'module' object has no attribute 'tables' 

I am using Pylons 0.9.7rc1, SQLAlchemy 0.4.7, Authkit 0.4.

+6
python authentication sqlalchemy pylons
source share
5 answers
+3
source share

Ok, another update on this. The cheeseshop pattern seems to be broken. I followed the chapter you linked in the post and it seems that authkit is working fine. There are some caveats:

  • sqlalchemy should be in version 0.5
  • authkit should be the dev version from svn (easy_install authkit == dev)

I managed to make it work fine.

+2
source share

I do not think AuthKit is actively supported. It uses paste ( http://pythonpaste.org ), although for things like HTTP Basic / Digest authentication. I would probably go further and look at the source for some inspiration, and then use the Paste tools if you want to use HTTP authentication.

There is also OpenID, which is very easy to configure. The python-openid libraries have a great example that can be easily translated to WSGI to package the Pylons application. You can see an example:

http://ionrock.org/hg/brightcontent-main/file/d87b7dcc606c/brightcontent/plugins/openidauth.py

+1
source share

It interested me: Check out this list of pylons . Therefore AuthKit is being developed, and I will follow the book and return to the results.

+1
source share