<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Let's You and Him Fight &#187; Pylons Opinions</title>
	<atom:link href="http://www.letsyouandhimfight.com/category/rant/pylons_opinions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.letsyouandhimfight.com</link>
	<description></description>
	<lastBuildDate>Wed, 14 Jul 2010 20:03:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Pylons Opinion: Don&#8217;t Use Authkit</title>
		<link>http://www.letsyouandhimfight.com/2009/10/28/pylons-opinion-dont-use-authkit/</link>
		<comments>http://www.letsyouandhimfight.com/2009/10/28/pylons-opinion-dont-use-authkit/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 18:36:27 +0000</pubDate>
		<dc:creator>jon</dc:creator>
				<category><![CDATA[Pylons Opinions]]></category>

		<guid isPermaLink="false">http://www.letsyouandhimfight.com/?p=49</guid>
		<description><![CDATA[There are three common systems of user authentication and authorization in Pylons nowadays, Authkit, repoze.who/what, and what is affectionately termed &#8220;roll-yer-own&#8221;. Many people, upon reading James Gardner&#8217;s The Definitive Guide to Pylons, conclude that Authkit is the preferred method among Pylons users. It may be worth mentioning at this point that Authkit is also written [...]]]></description>
			<content:encoded><![CDATA[<p>There are three common systems of user authentication and authorization in Pylons nowadays, Authkit, repoze.who/what, and what is affectionately termed &#8220;roll-yer-own&#8221;. Many people, upon reading James Gardner&#8217;s <em>The Definitive Guide to Pylons</em>, conclude that Authkit is the preferred method among Pylons users. It may be worth mentioning at this point that Authkit is also written by James Gardner.</p>
<p>The actual fact of the matter is that Authkit is, at best, deprecated. My own opinion is that, if you have a good grasp of how auth <em>ought</em> to work, you can implement a roll-yer-own system in less time than it takes to integrate Authkit, and it will be more suited to your needs.</p>
<p>Let us consider the situation: You require a user model in any event — something to keep track of which user is which. (And may I take a moment to recommend the use of <a href="http://pypi.python.org/pypi/bcrypt/0.1">bcrypt</a> for secure password storage?) You require some mechanism of keeping track of which user is logged in; the Pylons session will do nicely for this. You require a login/logout controller, which technically is not needed for the most basic Authkit setup, but which you will want to have if you want your login/logout pages to look like the rest of your site. And finally, you require some function, possibly a decorator, which lets you mark certain actions as requiring a logged-in user or a particular kind of logged-in user. These are pretty simple to write; you may wish to consult the <a href="http://wiki.pylonshq.com/display/pylonscookbook/Advanced+Homegrown+Auth">Advanced Homegrown Auth</a> article at the Pylons Cookbook wiki if you run into difficulty.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.letsyouandhimfight.com/2009/10/28/pylons-opinion-dont-use-authkit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
