<?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"
	>
<channel>
	<title>Comments for Jim Hoskins</title>
	<atom:link href="http://jimhoskins.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://jimhoskins.com</link>
	<description>Yeah... it's awesome</description>
	<pubDate>Thu, 20 Nov 2008 21:58:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>Comment on CherryPy Digest and Basic Authentication Tutorial by morecowbell</title>
		<link>http://jimhoskins.com/2008/07/21/cherrypy-digest-and-basic-authentication/#comment-42</link>
		<dc:creator>morecowbell</dc:creator>
		<pubDate>Tue, 02 Sep 2008 21:56:30 +0000</pubDate>
		<guid isPermaLink="false">http://jimhoskins.com/?p=5#comment-42</guid>
		<description>thanks for clearing that up. the example was somewhat contrived and predicated by laziness doing a "functional" redirect. obviously, that doesn't work and you probably saved me a wild goose chase or two down the road :) thanks again.</description>
		<content:encoded><![CDATA[<p>thanks for clearing that up. the example was somewhat contrived and predicated by laziness doing a &#8220;functional&#8221; redirect. obviously, that doesn&#8217;t work and you probably saved me a wild goose chase or two down the road <img src='http://jimhoskins.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CherryPy Digest and Basic Authentication Tutorial by Jim Hoskins</title>
		<link>http://jimhoskins.com/2008/07/21/cherrypy-digest-and-basic-authentication/#comment-37</link>
		<dc:creator>Jim Hoskins</dc:creator>
		<pubDate>Wed, 27 Aug 2008 23:30:22 +0000</pubDate>
		<guid isPermaLink="false">http://jimhoskins.com/?p=5#comment-37</guid>
		<description>@morecowbell: 

I am not exactly sure what you are going for in your example, but maybe this helps.

 If you want everything on your server to be protected, you can simply replace "/secure" with "/" in the configuration. 

CherryPy triggers authentication before the target method is called, based on the request path. If you manually call the method, CherryPy won't be able to tell, and authentication will not be triggered.

My suggestion would be to either:
1) Send a HTTP Redirect from root.index, this will cause the client to request /secure, and authentication will be triggered. Or, 
2) Add or change the configuration to include authentication for "/" and authentiaction will trigger on any request.

The use case you suggested seems possible, if the authentication code could be implemented as a decorator, but that functionality does not exist as far as I know. I may hack around with it to see if it can be done.

I hope this helps, let me know if I didn't fully answer your question.</description>
		<content:encoded><![CDATA[<p>@morecowbell: </p>
<p>I am not exactly sure what you are going for in your example, but maybe this helps.</p>
<p> If you want everything on your server to be protected, you can simply replace &#8220;/secure&#8221; with &#8220;/&#8221; in the configuration. </p>
<p>CherryPy triggers authentication before the target method is called, based on the request path. If you manually call the method, CherryPy won&#8217;t be able to tell, and authentication will not be triggered.</p>
<p>My suggestion would be to either:<br />
1) Send a HTTP Redirect from root.index, this will cause the client to request /secure, and authentication will be triggered. Or,<br />
2) Add or change the configuration to include authentication for &#8220;/&#8221; and authentiaction will trigger on any request.</p>
<p>The use case you suggested seems possible, if the authentication code could be implemented as a decorator, but that functionality does not exist as far as I know. I may hack around with it to see if it can be done.</p>
<p>I hope this helps, let me know if I didn&#8217;t fully answer your question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CherryPy Digest and Basic Authentication Tutorial by morecowbell</title>
		<link>http://jimhoskins.com/2008/07/21/cherrypy-digest-and-basic-authentication/#comment-36</link>
		<dc:creator>morecowbell</dc:creator>
		<pubDate>Wed, 27 Aug 2008 21:42:57 +0000</pubDate>
		<guid isPermaLink="false">http://jimhoskins.com/?p=5#comment-36</guid>
		<description>excellent. thanks.
got a question: using the basic_auth module from above but changing RootServer class to (in order to force the sign in pop up with out the user having to follow a link, for example):
    class RootServer:
    s = SecureServer()
    @cherrypy.expose
    def index(self):
        return self.s.index()

seems to circumvent the sign-in process. i was under the impression that the configuration for '/secure' would still require 
login and make sure that when the methods in that class are called, authentication is required. i seem to be missing something major here.  thx</description>
		<content:encoded><![CDATA[<p>excellent. thanks.<br />
got a question: using the basic_auth module from above but changing RootServer class to (in order to force the sign in pop up with out the user having to follow a link, for example):<br />
    class RootServer:<br />
    s = SecureServer()<br />
    @cherrypy.expose<br />
    def index(self):<br />
        return self.s.index()</p>
<p>seems to circumvent the sign-in process. i was under the impression that the configuration for &#8216;/secure&#8217; would still require<br />
login and make sure that when the methods in that class are called, authentication is required. i seem to be missing something major here.  thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CherryPy Digest and Basic Authentication Tutorial by morecowbell</title>
		<link>http://jimhoskins.com/2008/07/21/cherrypy-digest-and-basic-authentication/#comment-20</link>
		<dc:creator>morecowbell</dc:creator>
		<pubDate>Fri, 22 Aug 2008 05:15:46 +0000</pubDate>
		<guid isPermaLink="false">http://jimhoskins.com/?p=5#comment-20</guid>
		<description>awesome. most helpful.  thank you very much!</description>
		<content:encoded><![CDATA[<p>awesome. most helpful.  thank you very much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CherryPy Digest and Basic Authentication Tutorial by rohmad</title>
		<link>http://jimhoskins.com/2008/07/21/cherrypy-digest-and-basic-authentication/#comment-15</link>
		<dc:creator>rohmad</dc:creator>
		<pubDate>Fri, 15 Aug 2008 02:49:59 +0000</pubDate>
		<guid isPermaLink="false">http://jimhoskins.com/?p=5#comment-15</guid>
		<description>thanks alot!...its very useful</description>
		<content:encoded><![CDATA[<p>thanks alot!&#8230;its very useful</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cherrypy Digest Auth POST problem (and solution!) by Alex</title>
		<link>http://jimhoskins.com/2008/07/18/cherrypy-digest-auth-post-problem-and-solution/#comment-14</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 14 Aug 2008 17:05:10 +0000</pubDate>
		<guid isPermaLink="false">http://jimhoskins.com/?p=4#comment-14</guid>
		<description>Your blog is interesting! 
 
Keep up the good work!</description>
		<content:encoded><![CDATA[<p>Your blog is interesting! </p>
<p>Keep up the good work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cherrypy Digest Auth POST problem (and solution!) by Jim Hoskins</title>
		<link>http://jimhoskins.com/2008/07/18/cherrypy-digest-auth-post-problem-and-solution/#comment-13</link>
		<dc:creator>Jim Hoskins</dc:creator>
		<pubDate>Sun, 03 Aug 2008 04:22:22 +0000</pubDate>
		<guid isPermaLink="false">http://jimhoskins.com/?p=4#comment-13</guid>
		<description>Robert,

Awesome, I will have to check the version of cherrypy installed for the project in which I encountered this bug. I believe it is the latest stable. I had seen a bug report for this issue before, but It stated it had been fixed in a version prior to my current install.

I will look into it and update this article accordingly.</description>
		<content:encoded><![CDATA[<p>Robert,</p>
<p>Awesome, I will have to check the version of cherrypy installed for the project in which I encountered this bug. I believe it is the latest stable. I had seen a bug report for this issue before, but It stated it had been fixed in a version prior to my current install.</p>
<p>I will look into it and update this article accordingly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cherrypy Digest Auth POST problem (and solution!) by Robert Brewer</title>
		<link>http://jimhoskins.com/2008/07/18/cherrypy-digest-auth-post-problem-and-solution/#comment-12</link>
		<dc:creator>Robert Brewer</dc:creator>
		<pubDate>Sun, 03 Aug 2008 04:16:21 +0000</pubDate>
		<guid isPermaLink="false">http://jimhoskins.com/?p=4#comment-12</guid>
		<description>I believe this issue was addressed in http://www.cherrypy.org/ticket/786 and http://www.cherrypy.org/ticket/819. Let us know if it persists.</description>
		<content:encoded><![CDATA[<p>I believe this issue was addressed in <a href="http://www.cherrypy.org/ticket/786" rel="nofollow">http://www.cherrypy.org/ticket/786</a> and <a href="http://www.cherrypy.org/ticket/819" rel="nofollow">http://www.cherrypy.org/ticket/819</a>. Let us know if it persists.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CherryPy Digest and Basic Authentication Tutorial by Robert Brewer</title>
		<link>http://jimhoskins.com/2008/07/21/cherrypy-digest-and-basic-authentication/#comment-11</link>
		<dc:creator>Robert Brewer</dc:creator>
		<pubDate>Sun, 03 Aug 2008 04:08:44 +0000</pubDate>
		<guid isPermaLink="false">http://jimhoskins.com/?p=5#comment-11</guid>
		<description>Excellent! Thanks so much for this tutorial! We need more helpful people like you and articles like this one. :)</description>
		<content:encoded><![CDATA[<p>Excellent! Thanks so much for this tutorial! We need more helpful people like you and articles like this one. <img src='http://jimhoskins.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CherryPy Digest and Basic Authentication Tutorial by Green Data</title>
		<link>http://jimhoskins.com/2008/07/21/cherrypy-digest-and-basic-authentication/#comment-10</link>
		<dc:creator>Green Data</dc:creator>
		<pubDate>Sat, 26 Jul 2008 15:15:48 +0000</pubDate>
		<guid isPermaLink="false">http://jimhoskins.com/?p=5#comment-10</guid>
		<description>Cool man, this is really useful as I was going to implement some API (JSON) for my web application and was willing to authenticate such requests.
Anyway, I'll add your blog into my Feed Reader as it seems that you are a Python/Cherrypy fan like me.</description>
		<content:encoded><![CDATA[<p>Cool man, this is really useful as I was going to implement some API (JSON) for my web application and was willing to authenticate such requests.<br />
Anyway, I&#8217;ll add your blog into my Feed Reader as it seems that you are a Python/Cherrypy fan like me.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
