ZF Authentication

I was going to look at storing content to the database having done collection of data from the database. However, in trying to that, it became obvious that I need to look at logging in too.

Looking at authentication first I decided to approach it using the Front Controller's Plugin system. However, having got half way into the implementation, I'm not convinced. Ideally you need finer control and only request for logging for specific controllers or actions. So, I've scrapped the Plugin, after having found a bug in Zend_Controller_Dispatcher_Token!, and am going to look at subclassing the Action, which seems now to the right place.

As usual, for me, the issue is trying to minimise the intrusion into the main code as authentication is just the "plumbing" by the you get to the actual code you want to write.

If you would like to comment on this article, please ping me on twitter.
If your response won't fit into 140 characters, write a blog post and then ping me!