<?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: Securing a URL with Zend Framework</title>
	<atom:link href="http://www.kfx2.com/blog/2009/08/securing-a-url-with-zend-framework/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kfx2.com/blog/2009/08/securing-a-url-with-zend-framework/</link>
	<description>Design and development news from K-fx² in Baton Rouge, Louisiana</description>
	<pubDate>Sun, 05 Feb 2012 01:33:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Schlimmer</title>
		<link>http://www.kfx2.com/blog/2009/08/securing-a-url-with-zend-framework/comment-page-1/#comment-208</link>
		<dc:creator>Schlimmer</dc:creator>
		<pubDate>Tue, 01 Mar 2011 00:01:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.kfx2.com/blog/?p=139#comment-208</guid>
		<description>Addition to my last comment:
Some URLs cannot be redirected and must work on http and also https without further ado: AJAX-Requests, e.g. submitted by an auto suggest field being visible on all apges of a web application. So I additionally introduced ignore_ssl options.</description>
		<content:encoded><![CDATA[<p>Addition to my last comment:<br />
Some URLs cannot be redirected and must work on http and also https without further ado: AJAX-Requests, e.g. submitted by an auto suggest field being visible on all apges of a web application. So I additionally introduced ignore_ssl options.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Schlimmer</title>
		<link>http://www.kfx2.com/blog/2009/08/securing-a-url-with-zend-framework/comment-page-1/#comment-206</link>
		<dc:creator>Schlimmer</dc:creator>
		<pubDate>Sat, 08 Jan 2011 10:58:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.kfx2.com/blog/?p=139#comment-206</guid>
		<description>Excellent idea and work! Thanks!
Was nearly what I was looking for.
My modifications:
1)  $options = Zend_Controller_Front::getInstance()-&gt;getParam('bootstrap')-&gt;getOptions();
2) Made an altered version of _secureUrl that takes a boolean extra parameter, signaling wether the url should be secure or not
3) Call this method in preDispatch with $shouldSecureUrl
Result: Not secure-required urls are being redirected to the http equivalent. And that's what I needed.</description>
		<content:encoded><![CDATA[<p>Excellent idea and work! Thanks!<br />
Was nearly what I was looking for.<br />
My modifications:<br />
1)  $options = Zend_Controller_Front::getInstance()-&gt;getParam(&#8217;bootstrap&#8217;)-&gt;getOptions();<br />
2) Made an altered version of _secureUrl that takes a boolean extra parameter, signaling wether the url should be secure or not<br />
3) Call this method in preDispatch with $shouldSecureUrl<br />
Result: Not secure-required urls are being redirected to the http equivalent. And that&#8217;s what I needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edward Savage</title>
		<link>http://www.kfx2.com/blog/2009/08/securing-a-url-with-zend-framework/comment-page-1/#comment-175</link>
		<dc:creator>Edward Savage</dc:creator>
		<pubDate>Mon, 25 Oct 2010 16:15:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.kfx2.com/blog/?p=139#comment-175</guid>
		<description>Thanks for this, it was exactly what I was looking for.  I made two modifications for my usage:
 1) check a setting that indicates that the site has SSL
 2) "un-secure" requests that are in SSL mode but not SSL routes</description>
		<content:encoded><![CDATA[<p>Thanks for this, it was exactly what I was looking for.  I made two modifications for my usage:<br />
 1) check a setting that indicates that the site has SSL<br />
 2) &#8220;un-secure&#8221; requests that are in SSL mode but not SSL routes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: neoraptor</title>
		<link>http://www.kfx2.com/blog/2009/08/securing-a-url-with-zend-framework/comment-page-1/#comment-139</link>
		<dc:creator>neoraptor</dc:creator>
		<pubDate>Tue, 15 Dec 2009 20:53:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.kfx2.com/blog/?p=139#comment-139</guid>
		<description>Hello,
I would like to use this plugin for securing login, but I don't manage to make it work.

I have the following structure :
application
  &gt; Bootstrap.php
  &gt; config
  &gt; controllers
    &gt; IndexController.php
  &gt; plugin
    &gt; Custom_Controller_Plugin_Ssl.php

My action login is in the IndexController.
I don't know what you called module.

I have added this line in application.ini :
index.login.require_ssl = true

And this line in the index.php (in public) to load the plugin :
$loader = new Zend_Loader_PluginLoader();
$loader-&gt;addPrefixPath('Ssl_Helper', 'application/plugin/Custom_Controller_Plugin_Ssl.php');


Could you help me make your code work?

Thank you for your time.

Neoraptor</description>
		<content:encoded><![CDATA[<p>Hello,<br />
I would like to use this plugin for securing login, but I don&#8217;t manage to make it work.</p>
<p>I have the following structure :<br />
application<br />
  &gt; Bootstrap.php<br />
  &gt; config<br />
  &gt; controllers<br />
    &gt; IndexController.php<br />
  &gt; plugin<br />
    &gt; Custom_Controller_Plugin_Ssl.php</p>
<p>My action login is in the IndexController.<br />
I don&#8217;t know what you called module.</p>
<p>I have added this line in application.ini :<br />
index.login.require_ssl = true</p>
<p>And this line in the index.php (in public) to load the plugin :<br />
$loader = new Zend_Loader_PluginLoader();<br />
$loader-&gt;addPrefixPath(&#8217;Ssl_Helper&#8217;, &#8216;application/plugin/Custom_Controller_Plugin_Ssl.php&#8217;);</p>
<p>Could you help me make your code work?</p>
<p>Thank you for your time.</p>
<p>Neoraptor</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lance</title>
		<link>http://www.kfx2.com/blog/2009/08/securing-a-url-with-zend-framework/comment-page-1/#comment-137</link>
		<dc:creator>Lance</dc:creator>
		<pubDate>Tue, 22 Sep 2009 16:58:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.kfx2.com/blog/?p=139#comment-137</guid>
		<description>Good work man.  Pulling the designation for which modules, conrollers, and actions to redirect out of the front controller plugin and into the config is a nice abstraction.  Simplification to configuration options feels clean and efficient.</description>
		<content:encoded><![CDATA[<p>Good work man.  Pulling the designation for which modules, conrollers, and actions to redirect out of the front controller plugin and into the config is a nice abstraction.  Simplification to configuration options feels clean and efficient.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

