<?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: Basic Authentication on mod_wsgi</title>
	<atom:link href="http://www.nerdydork.com/basic-authentication-on-mod_wsgi.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.nerdydork.com/basic-authentication-on-mod_wsgi.html</link>
	<description>Dustin Davis reviews... the internet.</description>
	<lastBuildDate>Mon, 06 Sep 2010 15:29:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Salvatore@Wisdek</title>
		<link>http://www.nerdydork.com/basic-authentication-on-mod_wsgi.html/comment-page-1#comment-6627</link>
		<dc:creator>Salvatore@Wisdek</dc:creator>
		<pubDate>Sun, 31 Jan 2010 12:18:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=621#comment-6627</guid>
		<description>The decorator will handle all the details of the HTTP Basic Authentication for you, so now let&#039;s get back to the reason, why I&#039;m writing this text: If you want to use this method to protect your views and you host your Django project on Apache with mod_wsgi, you have to add one setting to your Apache configuration:

WSGIPassAuthorization On</description>
		<content:encoded><![CDATA[<p>The decorator will handle all the details of the HTTP Basic Authentication for you, so now let&#8217;s get back to the reason, why I&#8217;m writing this text: If you want to use this method to protect your views and you host your Django project on Apache with mod_wsgi, you have to add one setting to your Apache configuration:</p>
<p>WSGIPassAuthorization On</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fred@Laser Acne Removal</title>
		<link>http://www.nerdydork.com/basic-authentication-on-mod_wsgi.html/comment-page-1#comment-6611</link>
		<dc:creator>Fred@Laser Acne Removal</dc:creator>
		<pubDate>Thu, 28 Jan 2010 07:44:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=621#comment-6611</guid>
		<description>A good companion may be the require_POST decorator from django.views.decorators.http, which you can use on (api-) views, which only alter data and therefore should only receive HTTP POST requests. Decorators can be stacked, so you can write:

@require_POST
@logged_in_or_basicauth()
def api_view(request):</description>
		<content:encoded><![CDATA[<p>A good companion may be the require_POST decorator from django.views.decorators.http, which you can use on (api-) views, which only alter data and therefore should only receive HTTP POST requests. Decorators can be stacked, so you can write:</p>
<p>@require_POST<br />
@logged_in_or_basicauth()<br />
def api_view(request):</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob@Metal Bending</title>
		<link>http://www.nerdydork.com/basic-authentication-on-mod_wsgi.html/comment-page-1#comment-6610</link>
		<dc:creator>Rob@Metal Bending</dc:creator>
		<pubDate>Thu, 28 Jan 2010 07:43:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=621#comment-6610</guid>
		<description>(most often Microsoft Internet Explorer) in the border of the viewable screen as the visitor is viewing your website. This serves as an anchor so that the visitor knows where he or she is on your website. For this reason, titles need to clearly relate to their page and should include bread crumb or mouse trail information if there is space available. Microsoft&#039;s browser, called Internet Explorer, displays the first 95 characters of your title tag. For title tags longer than 95 characters, Internet Explorer will simply crop the tag, as you can see it has done to the title of this Web page.</description>
		<content:encoded><![CDATA[<p>(most often Microsoft Internet Explorer) in the border of the viewable screen as the visitor is viewing your website. This serves as an anchor so that the visitor knows where he or she is on your website. For this reason, titles need to clearly relate to their page and should include bread crumb or mouse trail information if there is space available. Microsoft&#8217;s browser, called Internet Explorer, displays the first 95 characters of your title tag. For title tags longer than 95 characters, Internet Explorer will simply crop the tag, as you can see it has done to the title of this Web page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Daniel@Working Out Abs</title>
		<link>http://www.nerdydork.com/basic-authentication-on-mod_wsgi.html/comment-page-1#comment-6609</link>
		<dc:creator>Mark Daniel@Working Out Abs</dc:creator>
		<pubDate>Thu, 28 Jan 2010 07:42:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=621#comment-6609</guid>
		<description>There is a good snippet available on djangosnippets.org, which implements a decorator for protecting individual views with HTTP Basic Authentication. You can see the code here: Snippet 243.</description>
		<content:encoded><![CDATA[<p>There is a good snippet available on <a href="http://djangosnippets.org" title="http://djangosnippets.org" target="_blank">djangosnippets.org</a>, which implements a decorator for protecting individual views with HTTP Basic Authentication. You can see the code here: Snippet 243.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Jeracevich</title>
		<link>http://www.nerdydork.com/basic-authentication-on-mod_wsgi.html/comment-page-1#comment-6608</link>
		<dc:creator>John Jeracevich</dc:creator>
		<pubDate>Thu, 28 Jan 2010 07:40:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=621#comment-6608</guid>
		<description>I sometimes use HTTP (Basic) Authentication to authenticate requests to an API of a website. Using cookie and form-based authentication for an API which will be used programmatically is generally a PITA. If the views are exposed via HTTPS (SSL/TLS encrypted) then I see no problem in using HTTP Basic Authentication.</description>
		<content:encoded><![CDATA[<p>I sometimes use HTTP (Basic) Authentication to authenticate requests to an API of a website. Using cookie and form-based authentication for an API which will be used programmatically is generally a PITA. If the views are exposed via HTTPS (SSL/TLS encrypted) then I see no problem in using HTTP Basic Authentication.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Kotkin@crankshafts</title>
		<link>http://www.nerdydork.com/basic-authentication-on-mod_wsgi.html/comment-page-1#comment-6602</link>
		<dc:creator>David Kotkin@crankshafts</dc:creator>
		<pubDate>Tue, 26 Jan 2010 09:53:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=621#comment-6602</guid>
		<description>Daemon mode of mod_wsgi will however only be available on Apache 2.0 or 2.2 running on UNIX, and only when the Apache runtime library underlying Apache has been compiled with support for threading.</description>
		<content:encoded><![CDATA[<p>Daemon mode of mod_wsgi will however only be available on Apache 2.0 or 2.2 running on UNIX, and only when the Apache runtime library underlying Apache has been compiled with support for threading.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve@Lift Chairs</title>
		<link>http://www.nerdydork.com/basic-authentication-on-mod_wsgi.html/comment-page-1#comment-6597</link>
		<dc:creator>Steve@Lift Chairs</dc:creator>
		<pubDate>Mon, 25 Jan 2010 15:47:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=621#comment-6597</guid>
		<description>Sometimes the quickest and easiest route is the best. Sometimes, for me anyway, it can be hard not to reinvent the wheel though, especially if you think you can do it better. 

I know how frustrating that whole hindsight thing can be too. Just this weekend, I spent a few hours trying to install Windows in a virtual machine, with a bad CD. 

It would have only normally taken about 30 minutes, but at least 25% of the files on the cd were corrupt. After fighting it for a few hours and using two different Windows CDs, I got it installed. However, afterwards, I thought of a better way to install it that would have probably not taken too much longer than a traditional install.</description>
		<content:encoded><![CDATA[<p>Sometimes the quickest and easiest route is the best. Sometimes, for me anyway, it can be hard not to reinvent the wheel though, especially if you think you can do it better. </p>
<p>I know how frustrating that whole hindsight thing can be too. Just this weekend, I spent a few hours trying to install Windows in a virtual machine, with a bad CD. </p>
<p>It would have only normally taken about 30 minutes, but at least 25% of the files on the cd were corrupt. After fighting it for a few hours and using two different Windows CDs, I got it installed. However, afterwards, I thought of a better way to install it that would have probably not taken too much longer than a traditional install.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesper Noehr</title>
		<link>http://www.nerdydork.com/basic-authentication-on-mod_wsgi.html/comment-page-1#comment-6529</link>
		<dc:creator>Jesper Noehr</dc:creator>
		<pubDate>Tue, 12 Jan 2010 08:32:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=621#comment-6529</guid>
		<description>Glad you found (and hopefully like) Piston. Let me know if you have any questions.</description>
		<content:encoded><![CDATA[<p>Glad you found (and hopefully like) Piston. Let me know if you have any questions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dustin</title>
		<link>http://www.nerdydork.com/basic-authentication-on-mod_wsgi.html/comment-page-1#comment-6526</link>
		<dc:creator>Dustin</dc:creator>
		<pubDate>Tue, 12 Jan 2010 05:58:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=621#comment-6526</guid>
		<description>@Graham - you&#039;re the man! I have never seen someone as singly dedicated to an open source project and pro-actively helpful.

I was looking at the documentation and from all I could tell it should have worked with 2.0. My only guess is that there were perhaps some other settings that had changed with the new setup, or perhaps Django itself had an issue. I would be curious to hear if anyone else has had similar issues.

It was good to have a reason to upgrade Django anyway.</description>
		<content:encoded><![CDATA[<p>@Graham &#8211; you&#8217;re the man! I have never seen someone as singly dedicated to an open source project and pro-actively helpful.</p>
<p>I was looking at the documentation and from all I could tell it should have worked with 2.0. My only guess is that there were perhaps some other settings that had changed with the new setup, or perhaps Django itself had an issue. I would be curious to hear if anyone else has had similar issues.</p>
<p>It was good to have a reason to upgrade Django anyway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham Dumpleton</title>
		<link>http://www.nerdydork.com/basic-authentication-on-mod_wsgi.html/comment-page-1#comment-6525</link>
		<dc:creator>Graham Dumpleton</dc:creator>
		<pubDate>Tue, 12 Jan 2010 05:48:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=621#comment-6525</guid>
		<description>FWIW, WSGIPassAuthorization has always existed with mod_wsgi and there is no reason it shouldn&#039;t have worked with the older version.</description>
		<content:encoded><![CDATA[<p>FWIW, WSGIPassAuthorization has always existed with mod_wsgi and there is no reason it shouldn&#8217;t have worked with the older version.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
