<?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: Zend Acl with Authentication and Reflection</title>
	<atom:link href="http://www.zendcasts.com/zend-acl-with-authentication-and-reflection/2009/06/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zendcasts.com/zend-acl-with-authentication-and-reflection/2009/06/</link>
	<description>free Zend Framework screencasts. Video tutorials to get you up to speed with different parts of the Zend Framework and enterprise PHP development.</description>
	<lastBuildDate>Wed, 01 Feb 2012 00:49:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Oscar</title>
		<link>http://www.zendcasts.com/zend-acl-with-authentication-and-reflection/2009/06/comment-page-1/#comment-22316</link>
		<dc:creator>Oscar</dc:creator>
		<pubDate>Sat, 20 Aug 2011 12:52:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=217#comment-22316</guid>
		<description>Impresionante John!

De lo mejor que he visto sobre Zend y PHPUnit.

Gracias por compartir su experiencia.

Un saludo desde España,

------------------------
Translator Google
------------------------
Awesome John!

The best I&#039;ve seen on Zend and PHPUnit.

Thanks for sharing your experience.

A greeting from Spain</description>
		<content:encoded><![CDATA[<p>Impresionante John!</p>
<p>De lo mejor que he visto sobre Zend y PHPUnit.</p>
<p>Gracias por compartir su experiencia.</p>
<p>Un saludo desde España,</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Translator Google<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Awesome John!</p>
<p>The best I&#8217;ve seen on Zend and PHPUnit.</p>
<p>Thanks for sharing your experience.</p>
<p>A greeting from Spain</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cristian</title>
		<link>http://www.zendcasts.com/zend-acl-with-authentication-and-reflection/2009/06/comment-page-1/#comment-16516</link>
		<dc:creator>Cristian</dc:creator>
		<pubDate>Thu, 24 Mar 2011 22:18:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=217#comment-16516</guid>
		<description>Hi there John.
I know this video is kind of old :), But I need to understand how Zend_Acl roles and resources can be used for restricting or allowing access to certain actions or controllers

Regards :b</description>
		<content:encoded><![CDATA[<p>Hi there John.<br />
I know this video is kind of old <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , But I need to understand how Zend_Acl roles and resources can be used for restricting or allowing access to certain actions or controllers</p>
<p>Regards :b</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ibrahim</title>
		<link>http://www.zendcasts.com/zend-acl-with-authentication-and-reflection/2009/06/comment-page-1/#comment-16124</link>
		<dc:creator>Ibrahim</dc:creator>
		<pubDate>Sat, 12 Mar 2011 17:47:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=217#comment-16124</guid>
		<description>Then after the user logs in, having the role in session, you can check whether he has permissions or not whe he tries to access certain controllers/actions.

I&#039;m against having that particular kind of information in a session, even though it is server side. Through hijacking or manipulation it is quite possible to change your own role and you could have a serious breach of security. My philosophy is to keep user information in the database and just save the userid and a secretkey in your session to authenticate and after authentication look up the information in the database for full security.

@video, even though I like how you explained the auth and acl, I do have some remarks on your code. First of all, I would not make a difference in user lookups (e.g. UserLookup and AdminLookup). A user is a user. The proces should be the same. Zend_Acl is there to differentiate users, the authentication is merely to authenticate.

I would also not, if I chose to separate the authentication for regular users and admin, make a interface, but rather a parent class or even an abstract class to obey the laws of DRY.

Even though I had remarks, great job on your video.</description>
		<content:encoded><![CDATA[<p>Then after the user logs in, having the role in session, you can check whether he has permissions or not whe he tries to access certain controllers/actions.</p>
<p>I&#8217;m against having that particular kind of information in a session, even though it is server side. Through hijacking or manipulation it is quite possible to change your own role and you could have a serious breach of security. My philosophy is to keep user information in the database and just save the userid and a secretkey in your session to authenticate and after authentication look up the information in the database for full security.</p>
<p>@video, even though I like how you explained the auth and acl, I do have some remarks on your code. First of all, I would not make a difference in user lookups (e.g. UserLookup and AdminLookup). A user is a user. The proces should be the same. Zend_Acl is there to differentiate users, the authentication is merely to authenticate.</p>
<p>I would also not, if I chose to separate the authentication for regular users and admin, make a interface, but rather a parent class or even an abstract class to obey the laws of DRY.</p>
<p>Even though I had remarks, great job on your video.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Felipe</title>
		<link>http://www.zendcasts.com/zend-acl-with-authentication-and-reflection/2009/06/comment-page-1/#comment-14431</link>
		<dc:creator>Felipe</dc:creator>
		<pubDate>Tue, 11 Jan 2011 20:06:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=217#comment-14431</guid>
		<description>&quot;A tutorial combining Zend_Auth with Zend_Acl focused on controlling access to Controllers/Actions will be great!&quot;

I agree too, i&#039;m developed a solution like SousGarden using a helper to control ACL.

Make this using the native Zend_Acl would be nice!</description>
		<content:encoded><![CDATA[<p>&#8220;A tutorial combining Zend_Auth with Zend_Acl focused on controlling access to Controllers/Actions will be great!&#8221;</p>
<p>I agree too, i&#8217;m developed a solution like SousGarden using a helper to control ACL.</p>
<p>Make this using the native Zend_Acl would be nice!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SousGarden</title>
		<link>http://www.zendcasts.com/zend-acl-with-authentication-and-reflection/2009/06/comment-page-1/#comment-6512</link>
		<dc:creator>SousGarden</dc:creator>
		<pubDate>Fri, 09 Apr 2010 23:18:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=217#comment-6512</guid>
		<description>&quot;A tutorial combining Zend_Auth with Zend_Acl focused on controlling access to Controllers/Actions will be great!&quot;
RIGHT!!!
Thats also my question. 
I realize it already, but I&#039;m unhappy with my solution. 
My resource is the controller and/with action in my Acl class. But this means I have to set ALL my controllers with all actions in my Acl class.

That&#039;s ugly.
I&#039;m searching for a way to give a controller/action class a predefined resource like PUBLIC_PAGE and ADMIN_PAGE. That would make the work much more clean.

But how to get this. I use a preDispatch plugin, and at that point the controller isn&#039;t initiated. 

A good idea or help will be nice.</description>
		<content:encoded><![CDATA[<p>&#8220;A tutorial combining Zend_Auth with Zend_Acl focused on controlling access to Controllers/Actions will be great!&#8221;<br />
RIGHT!!!<br />
Thats also my question.<br />
I realize it already, but I&#8217;m unhappy with my solution.<br />
My resource is the controller and/with action in my Acl class. But this means I have to set ALL my controllers with all actions in my Acl class.</p>
<p>That&#8217;s ugly.<br />
I&#8217;m searching for a way to give a controller/action class a predefined resource like PUBLIC_PAGE and ADMIN_PAGE. That would make the work much more clean.</p>
<p>But how to get this. I use a preDispatch plugin, and at that point the controller isn&#8217;t initiated. </p>
<p>A good idea or help will be nice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zend Acl Tutorials &#171; Web Developer Tips</title>
		<link>http://www.zendcasts.com/zend-acl-with-authentication-and-reflection/2009/06/comment-page-1/#comment-6326</link>
		<dc:creator>Zend Acl Tutorials &#171; Web Developer Tips</dc:creator>
		<pubDate>Fri, 26 Mar 2010 07:04:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=217#comment-6326</guid>
		<description>[...] Zend Acl&#160;Tutorials  Filed Under: Zend by nisanthkumar &#8212; Leave a comment March 26, 2010    Zend Acl Link1 [...]</description>
		<content:encoded><![CDATA[<p>[...] Zend Acl&nbsp;Tutorials  Filed Under: Zend by nisanthkumar &mdash; Leave a comment March 26, 2010    Zend Acl Link1 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mysticav</title>
		<link>http://www.zendcasts.com/zend-acl-with-authentication-and-reflection/2009/06/comment-page-1/#comment-6314</link>
		<dc:creator>mysticav</dc:creator>
		<pubDate>Thu, 25 Mar 2010 09:33:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=217#comment-6314</guid>
		<description>&quot;marsbomber says: this is a great tutorial! however is it possible to make a simple database driven acl implementation tutorial in the future?&quot;

IMO,
If you plan to manage a different Role per User, then static Zend_ACL is not feasible. Because Zend_ACL uses the Roles Approach, which basically predefines a set of rules to be shared among many users.

I can&#039;t imagine updating manually the Role&#039;s file every time a user is added to the database ! 

So, creating a role per user could be insane using Zend_Acl 

If you apply a role to many users (as it should be), then it&#039;s just a matter of mapping the user to the specific role created with Zend_Acl.

The mapping could be done dynamically on the database. Just add a &quot;role&quot; column to the Users table. Then after the user logs in, having the role in session, you can check whether he has permissions or not whe he tries to access certain controllers/actions. 

Jon,

A tutorial combining Zend_Auth with Zend_Acl focused on controlling access to Controllers/Actions will be great!</description>
		<content:encoded><![CDATA[<p>&#8220;marsbomber says: this is a great tutorial! however is it possible to make a simple database driven acl implementation tutorial in the future?&#8221;</p>
<p>IMO,<br />
If you plan to manage a different Role per User, then static Zend_ACL is not feasible. Because Zend_ACL uses the Roles Approach, which basically predefines a set of rules to be shared among many users.</p>
<p>I can&#8217;t imagine updating manually the Role&#8217;s file every time a user is added to the database ! </p>
<p>So, creating a role per user could be insane using Zend_Acl </p>
<p>If you apply a role to many users (as it should be), then it&#8217;s just a matter of mapping the user to the specific role created with Zend_Acl.</p>
<p>The mapping could be done dynamically on the database. Just add a &#8220;role&#8221; column to the Users table. Then after the user logs in, having the role in session, you can check whether he has permissions or not whe he tries to access certain controllers/actions. </p>
<p>Jon,</p>
<p>A tutorial combining Zend_Auth with Zend_Acl focused on controlling access to Controllers/Actions will be great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shaded</title>
		<link>http://www.zendcasts.com/zend-acl-with-authentication-and-reflection/2009/06/comment-page-1/#comment-6292</link>
		<dc:creator>shaded</dc:creator>
		<pubDate>Tue, 23 Mar 2010 13:56:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=217#comment-6292</guid>
		<description>can you give a simple example of how to call this in a view? no forms or anything, just a page showing text and making portions visible only to a user that has access.</description>
		<content:encoded><![CDATA[<p>can you give a simple example of how to call this in a view? no forms or anything, just a page showing text and making portions visible only to a user that has access.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bernard Robbins</title>
		<link>http://www.zendcasts.com/zend-acl-with-authentication-and-reflection/2009/06/comment-page-1/#comment-5717</link>
		<dc:creator>Bernard Robbins</dc:creator>
		<pubDate>Mon, 01 Mar 2010 19:10:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=217#comment-5717</guid>
		<description>Another awesome tutorial.</description>
		<content:encoded><![CDATA[<p>Another awesome tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/zend-acl-with-authentication-and-reflection/2009/06/comment-page-1/#comment-5200</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Wed, 03 Feb 2010 13:29:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=217#comment-5200</guid>
		<description>Personally, I wouldn&#039;t put them in the models folder since I see ACL roles / resources as a component of a model. They model would likely &quot;look-up&quot; that particular object, but it wouldn&#039;t be coupled to the model in any way since this would create an unnecessary one-to-one coupling of the ACL rules and the model.</description>
		<content:encoded><![CDATA[<p>Personally, I wouldn&#8217;t put them in the models folder since I see ACL roles / resources as a component of a model. They model would likely &#8220;look-up&#8221; that particular object, but it wouldn&#8217;t be coupled to the model in any way since this would create an unnecessary one-to-one coupling of the ACL rules and the model.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niels</title>
		<link>http://www.zendcasts.com/zend-acl-with-authentication-and-reflection/2009/06/comment-page-1/#comment-5196</link>
		<dc:creator>Niels</dc:creator>
		<pubDate>Wed, 03 Feb 2010 11:48:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=217#comment-5196</guid>
		<description>I know this post is old, but anyways. Jon, wouldn&#039;t you say that ACL roles, resources and permissions are Models and should hence live in the Models folder?</description>
		<content:encoded><![CDATA[<p>I know this post is old, but anyways. Jon, wouldn&#8217;t you say that ACL roles, resources and permissions are Models and should hence live in the Models folder?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/zend-acl-with-authentication-and-reflection/2009/06/comment-page-1/#comment-1608</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Sat, 11 Jul 2009 18:02:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=217#comment-1608</guid>
		<description>Hi Lukasz,

Are you referencing the Zend Framework or is it actually sitting in your library? If its in the actual NetBeans project than there shouldn&#039;t be a problem, however I&#039;ve moved to Zend Studio recently so I can&#039;t comment on NB specifically. I might start using NB for some more videos in the next months. Thanks for the feedback :)</description>
		<content:encoded><![CDATA[<p>Hi Lukasz,</p>
<p>Are you referencing the Zend Framework or is it actually sitting in your library? If its in the actual NetBeans project than there shouldn&#8217;t be a problem, however I&#8217;ve moved to Zend Studio recently so I can&#8217;t comment on NB specifically. I might start using NB for some more videos in the next months. Thanks for the feedback <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Łukasz Woźniak</title>
		<link>http://www.zendcasts.com/zend-acl-with-authentication-and-reflection/2009/06/comment-page-1/#comment-1587</link>
		<dc:creator>Łukasz Woźniak</dc:creator>
		<pubDate>Fri, 10 Jul 2009 19:06:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=217#comment-1587</guid>
		<description>Hello!

I&#039;m just starting learning Zend Framework and your Zendcast are great very good job:) U can&#039;t say it with one word :)

I have a couple of questions... i have some problems with &quot;code Code Completions&quot;. I&#039;m using NetBeans and sometimes it complete code by hit Ctrl+Space, but very offen i get &quot;no suggestions&quot;. And i see that in this same steps in your ZC u have &quot;Code Completions&quot;.

I&#039;m searching whole net to find something, but in NetBeans it isn&#039;t support for ZF. And in Eclipse are some points for it. I saw many ppl have problems with it with half working code completions.

I&#039;ll very glad if u have somewhere some solutions for it. IDE isn&#039;t metter( but in margin: I prefer NB:)

Thank you for help.
Lukas

P.S.
Sorry for my bad english:) I believe u understand me :)</description>
		<content:encoded><![CDATA[<p>Hello!</p>
<p>I&#8217;m just starting learning Zend Framework and your Zendcast are great very good job:) U can&#8217;t say it with one word <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I have a couple of questions&#8230; i have some problems with &#8220;code Code Completions&#8221;. I&#8217;m using NetBeans and sometimes it complete code by hit Ctrl+Space, but very offen i get &#8220;no suggestions&#8221;. And i see that in this same steps in your ZC u have &#8220;Code Completions&#8221;.</p>
<p>I&#8217;m searching whole net to find something, but in NetBeans it isn&#8217;t support for ZF. And in Eclipse are some points for it. I saw many ppl have problems with it with half working code completions.</p>
<p>I&#8217;ll very glad if u have somewhere some solutions for it. IDE isn&#8217;t metter( but in margin: I prefer NB:)</p>
<p>Thank you for help.<br />
Lukas</p>
<p>P.S.<br />
Sorry for my bad english:) I believe u understand me <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tawfekov</title>
		<link>http://www.zendcasts.com/zend-acl-with-authentication-and-reflection/2009/06/comment-page-1/#comment-1447</link>
		<dc:creator>tawfekov</dc:creator>
		<pubDate>Tue, 30 Jun 2009 07:26:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=217#comment-1447</guid>
		<description>you can find the download link if you view  the Desktop Feed link with firefox :)</description>
		<content:encoded><![CDATA[<p>you can find the download link if you view  the Desktop Feed link with firefox <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://www.zendcasts.com/zend-acl-with-authentication-and-reflection/2009/06/comment-page-1/#comment-1445</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Tue, 30 Jun 2009 05:12:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=217#comment-1445</guid>
		<description>Hi 

At first , thank&#039;s to John for great struggle and hope to continue .

this is the link for this screen cast :

http://www.zendcasts.com/wp-content/uploads/2009/06/zc28-zend-acl-reflection-authentication-screen.mov</description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>At first , thank&#8217;s to John for great struggle and hope to continue .</p>
<p>this is the link for this screen cast :</p>
<p><a href="http://www.zendcasts.com/wp-content/uploads/2009/06/zc28-zend-acl-reflection-authentication-screen.mov" rel="nofollow">http://www.zendcasts.com/wp-content/uploads/2009/06/zc28-zend-acl-reflection-authentication-screen.mov</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BEREGU</title>
		<link>http://www.zendcasts.com/zend-acl-with-authentication-and-reflection/2009/06/comment-page-1/#comment-1444</link>
		<dc:creator>BEREGU</dc:creator>
		<pubDate>Tue, 30 Jun 2009 04:27:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=217#comment-1444</guid>
		<description>You can download the video with the following link:

http://www.zendcasts.com/wp-content/uploads/2009/06/zc28-zend-acl-reflection-authentication-screen.mov


By the way, thank you Jon Lebensold for the nice video tutorials.</description>
		<content:encoded><![CDATA[<p>You can download the video with the following link:</p>
<p><a href="http://www.zendcasts.com/wp-content/uploads/2009/06/zc28-zend-acl-reflection-authentication-screen.mov" rel="nofollow">http://www.zendcasts.com/wp-content/uploads/2009/06/zc28-zend-acl-reflection-authentication-screen.mov</a></p>
<p>By the way, thank you Jon Lebensold for the nice video tutorials.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marsbomber</title>
		<link>http://www.zendcasts.com/zend-acl-with-authentication-and-reflection/2009/06/comment-page-1/#comment-1443</link>
		<dc:creator>marsbomber</dc:creator>
		<pubDate>Tue, 30 Jun 2009 00:53:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=217#comment-1443</guid>
		<description>this is a great tutorial! however is it possible to make a simple database driven acl implementation tutorial in the future?</description>
		<content:encoded><![CDATA[<p>this is a great tutorial! however is it possible to make a simple database driven acl implementation tutorial in the future?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yosy</title>
		<link>http://www.zendcasts.com/zend-acl-with-authentication-and-reflection/2009/06/comment-page-1/#comment-1442</link>
		<dc:creator>Yosy</dc:creator>
		<pubDate>Mon, 29 Jun 2009 22:21:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=217#comment-1442</guid>
		<description>Thanks for the great tutorials,
Can you create tutorial about &quot;modules&quot; ?</description>
		<content:encoded><![CDATA[<p>Thanks for the great tutorials,<br />
Can you create tutorial about &#8220;modules&#8221; ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: snapshot</title>
		<link>http://www.zendcasts.com/zend-acl-with-authentication-and-reflection/2009/06/comment-page-1/#comment-1437</link>
		<dc:creator>snapshot</dc:creator>
		<pubDate>Mon, 29 Jun 2009 17:33:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=217#comment-1437</guid>
		<description>Where are links to download video?</description>
		<content:encoded><![CDATA[<p>Where are links to download video?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

