<p>I am trying to create a web application using Pylons and the resources on the web point to the <a href="http://pylonsbook.com/alpha1/authentication_and_authorization" rel="noreferrer">PylonsBook</a> page which isn't of much help. I want authentication and authorisation and is there anyway to setup Authkit to work easily with Pylons?</p>

<p>I tried downloading the <a href="http://pypi.python.org/pypi/SimpleSiteTemplate/" rel="noreferrer">SimpleSiteTemplate</a> from the cheeseshop but wasn't able to run the setup-app command. It throws up an error:</p>

<pre><code>  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'
</code></pre>

<p>I use Pylons 0.9.7rc1, SQLAlchemy 0.4.7, Authkit 0.4.</p>

[{'answer_id': 52136, 'author': 'elarson', 'author_id': 5434, 'author_profile': 'https://Stackoverflow.com/users/5434', 'pm_score': 1, 'selected': False, 'text': '<p>I don\'t think AuthKit is actively maintained anymore. It does use the Paste (<a href="http://pythonpaste.org" rel="nofollow noreferrer">http://pythonpaste.org</a>) libs though for things like HTTP Basic/Digest authentication. I would probably go ahead and take a look at the source for some inspiration and then use the Paste tools if you want to use HTTP authentication. </p>\n\n<p>There is also OpenID which is very easy to setup. The python-openid libs have an excellent example that is easy to translate to WSGI for wrapping a Pylons app. You can look at an example:</p>\n\n<p><a href="http://ionrock.org/hg/brightcontent-main/file/d87b7dcc606c/brightcontent/plugins/openidauth.py" rel="nofollow noreferrer">http://ionrock.org/hg/brightcontent-main/file/d87b7dcc606c/brightcontent/plugins/openidauth.py</a></p>\n'}, {'answer_id': 61614, 'author': 'Bartosz Radaczyński', 'author_id': 985, 'author_profile': 'https://Stackoverflow.com/users/985', 'pm_score': 0, 'selected': False, 'text': '<p>This actually got me interested:<a href="http://groups.google.com/group/pylons-discuss/browse_thread/thread/644deb53612af362?hl=en" rel="nofollow noreferrer">Check out this mailing on the pylons list</a>. So AuthKit is being developed, and I will follow the book and get back on the results.</p>\n'}, {'answer_id': 139574, 'author': 'Bartosz Radaczyński', 'author_id': 985, 'author_profile': 'https://Stackoverflow.com/users/985', 'pm_score': 2, 'selected': False, 'text': "<p>Ok, another update on the subject. It seems that the cheeseshop template is broken. I've followed the chapter you linked in the post and it seems that authkit is working fine. There are some caveats:</p>\n\n<ol>\n<li>sqlalchemy has to be in 0.5 version</li>\n<li>authkit has to be the dev version from svn (easy_install authkit==dev)</li>\n</ol>\n\n<p>I managed to get it working fine.</p>\n"}, {'answer_id': 948216, 'author': 'Tony', 'author_id': 76815, 'author_profile': 'https://Stackoverflow.com/users/76815', 'pm_score': 2, 'selected': False, 'text': '<p>I gave up on authkit and rolled my own:\n<a href="http://tonylandis.com/openid-db-authentication-in-pylons-is-easy-with-rpx/" rel="nofollow noreferrer">http://tonylandis.com/openid-db-authentication-in-pylons-is-easy-with-rpx/</a></p>\n'}]
['https://Stackoverflow.com/questions/47801', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1448/']