<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: CodeIgniter Authentication Design Principles</title>
	<atom:link href="http://geekhut.org/2009/10/codeigniter-authentication-design-principles/feed/" rel="self" type="application/rss+xml" />
	<link>http://geekhut.org/2009/10/codeigniter-authentication-design-principles/</link>
	<description>Chock Full of Geeky Goodness</description>
	<lastBuildDate>Mon, 26 Jul 2010 13:32:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=6447</generator>
	<item>
		<title>By: jorix</title>
		<link>http://geekhut.org/2009/10/codeigniter-authentication-design-principles/comment-page-1/#comment-1364</link>
		<dc:creator>jorix</dc:creator>
		<pubDate>Thu, 08 Oct 2009 22:30:24 +0000</pubDate>
		<guid isPermaLink="false">http://geekhut.org/?p=838#comment-1364</guid>
		<description>Cool. Looking forward to see your screencast on this. Always great to compare methods.</description>
		<content:encoded><![CDATA[<p>Cool. Looking forward to see your screencast on this. Always great to compare methods.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aster1sk</title>
		<link>http://geekhut.org/2009/10/codeigniter-authentication-design-principles/comment-page-1/#comment-1362</link>
		<dc:creator>aster1sk</dc:creator>
		<pubDate>Thu, 08 Oct 2009 16:51:37 +0000</pubDate>
		<guid isPermaLink="false">http://geekhut.org/?p=838#comment-1362</guid>
		<description>I would have loved to have demonstrated this technique in full, unfortunately this tutorial was meant for an absolute basic explanation.  Last night we did a screencast (about 45 minutes) I am syncing the audio from the call to the video which demonstrates exactly your method.

Thank you very much for your feedback.</description>
		<content:encoded><![CDATA[<p>I would have loved to have demonstrated this technique in full, unfortunately this tutorial was meant for an absolute basic explanation.  Last night we did a screencast (about 45 minutes) I am syncing the audio from the call to the video which demonstrates exactly your method.</p>
<p>Thank you very much for your feedback.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jorix</title>
		<link>http://geekhut.org/2009/10/codeigniter-authentication-design-principles/comment-page-1/#comment-1361</link>
		<dc:creator>jorix</dc:creator>
		<pubDate>Thu, 08 Oct 2009 12:55:38 +0000</pubDate>
		<guid isPermaLink="false">http://geekhut.org/?p=838#comment-1361</guid>
		<description>In this example, class method names are tied into the auth library, meaning you need to update auth if a new method is added to a controller. Also, since there is no relation between the method and the controller, allowing a &quot;user&quot; to have insert or update permissions would allow this for every controller that makes use of auth. 

Why not just pass allowed roles as an argument and match the the role of the logged in user against it? This would work within a controller constructor as well as inside specific controller methods (if you need granular security)

$this-&gt;auth-&gt;allowed_roles(&#039;user&#039;,&#039;admin&#039;);

On the downside, if roles change or a new role is introduced, you need to update your controllers.</description>
		<content:encoded><![CDATA[<p>In this example, class method names are tied into the auth library, meaning you need to update auth if a new method is added to a controller. Also, since there is no relation between the method and the controller, allowing a &#8220;user&#8221; to have insert or update permissions would allow this for every controller that makes use of auth. </p>
<p>Why not just pass allowed roles as an argument and match the the role of the logged in user against it? This would work within a controller constructor as well as inside specific controller methods (if you need granular security)</p>
<p>$this-&gt;auth-&gt;allowed_roles(&#8216;user&#8217;,'admin&#8217;);</p>
<p>On the downside, if roles change or a new role is introduced, you need to update your controllers.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
