<?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 on: AtomPub + OAuth for Wordpress!</title>
	<atom:link href="http://singpolyma.net/2008/05/atompub-oauth-for-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://singpolyma.net/2008/05/atompub-oauth-for-wordpress/</link>
	<description></description>
	<pubDate>Sat, 06 Sep 2008 23:09:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Stephen Paul Weber</title>
		<link>http://singpolyma.net/2008/05/atompub-oauth-for-wordpress/#comment-106047</link>
		<dc:creator>Stephen Paul Weber</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://singpolyma.net/?p=335#comment-106047</guid>
		<description>@Zach are you getting to the "Authorize" step correctly?  Correct flow if this all works should be:

1) Click button on test script
2) Click "Ok" to authorize key on Wordpress site (may have to log in first)
3) Get success message.

Instead you are getting a 401?  This is rather unusual... that means that the OAuth plugin is not correctly running before the rest - or that it is not looking in the right place.  Do you have the lastest SVN version of wp-oauth and wp-xrds-simple installed and activated?</description>
		<content:encoded><![CDATA[<p>@Zach are you getting to the &#034;Authorize&#034; step correctly?  Correct flow if this all works should be:</p>
<p>1) Click button on test script<br />
2) Click &#034;Ok&#034; to authorize key on Wordpress site (may have to log in first)<br />
3) Get success message.</p>
<p>Instead you are getting a 401?  This is rather unusual&#8230; that means that the OAuth plugin is not correctly running before the rest - or that it is not looking in the right place.  Do you have the lastest SVN version of wp-oauth and wp-xrds-simple installed and activated?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zach Blank</title>
		<link>http://singpolyma.net/2008/05/atompub-oauth-for-wordpress/#comment-102356</link>
		<dc:creator>Zach Blank</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://singpolyma.net/?p=335#comment-102356</guid>
		<description>Hi Singpolyma,

after looking over all of the comments and playing with this myself i receive the following after running wp_app.php:

http://dotspot.zachblank.com/wp-app.php/posts?oauth_version=1.0&#38;oauth_nonce=d4eae249bdc4f4dcc8fb02f22418d3ac&#38;oauth_timestamp=1217184038&#38;oauth_consumer_key=DUMMYKEY&#38;oauth_token=d1e23d9aff528d994ddb7b6be48f12facb06c278&#38;oauth_signature_method=HMAC-SHA1&#38;oauth_signature=puMhdg4mu4VkRjENQ%2BH4YoflxDA%3D

string(610) "HTTP/1.1 Credentials required.
Date: Sun, 27 Jul 2008 18:40:38 GMT
Server: Apache/2.0.54
X-Powered-By: PHP/5.2.6
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Pragma: no-cache
WWW-Authenticate: Basic realm="WordPress Atom Protocol"
Last-Modified: Sun, 27 Jul 2008 18:40:39 GMT
Vary: Accept-Encoding
Transfer-Encoding: chunked
Content-Type: text/html



  
    401 Unauthorized
  

    401 Unauthorized
    Credentials required.
  

"

Can you see what the issue is here? seems like it is working BUT 401... how do i provide credentials if they are required?

Thank You!!!</description>
		<content:encoded><![CDATA[<p>Hi Singpolyma,</p>
<p>after looking over all of the comments and playing with this myself i receive the following after running wp_app.php:</p>
<p><a href="http://dotspot.zachblank.com/wp-app.php/posts?oauth_version=1.0&amp;oauth_nonce=d4eae249bdc4f4dcc8fb02f22418d3ac&amp;oauth_timestamp=1217184038&amp;oauth_consumer_key=DUMMYKEY&amp;oauth_token=d1e23d9aff528d994ddb7b6be48f12facb06c278&amp;oauth_signature_method=HMAC-SHA1&amp;oauth_signature=puMhdg4mu4VkRjENQ%2BH4YoflxDA%3D" rel="nofollow">http://dotspot.zachblank.com/wp-app.php/posts?oauth_version=1.0&amp;oauth_nonce=d4eae249bdc4f4dcc8fb02f22418d3ac&amp;oauth_timestamp=1217184038&amp;oauth_consumer_key=DUMMYKEY&amp;oauth_token=d1e23d9aff528d994ddb7b6be48f12facb06c278&amp;oauth_signature_method=HMAC-SHA1&amp;oauth_signature=puMhdg4mu4VkRjENQ%2BH4YoflxDA%3D</a></p>
<p>string(610) &#034;HTTP/1.1 Credentials required.<br />
Date: Sun, 27 Jul 2008 18:40:38 GMT<br />
Server: Apache/2.0.54<br />
X-Powered-By: PHP/5.2.6<br />
Expires: Wed, 11 Jan 1984 05:00:00 GMT<br />
Cache-Control: no-cache, must-revalidate, max-age=0<br />
Pragma: no-cache<br />
WWW-Authenticate: Basic realm=&#034;WordPress Atom Protocol&#034;<br />
Last-Modified: Sun, 27 Jul 2008 18:40:39 GMT<br />
Vary: Accept-Encoding<br />
Transfer-Encoding: chunked<br />
Content-Type: text/html</p>
<p>    401 Unauthorized</p>
<p>    401 Unauthorized<br />
    Credentials required.</p>
<p>&#034;</p>
<p>Can you see what the issue is here? seems like it is working BUT 401&#8230; how do i provide credentials if they are required?</p>
<p>Thank You!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Paul Weber</title>
		<link>http://singpolyma.net/2008/05/atompub-oauth-for-wordpress/#comment-93186</link>
		<dc:creator>Stephen Paul Weber</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://singpolyma.net/?p=335#comment-93186</guid>
		<description>@Ming (1) wp_app.php is just a test script - not surprising you had to make some changes. (2&#38;3) Might make sense to submit reports of some kind to WordPress, since those are requirements for WordPress AtomPub and not my plugin.</description>
		<content:encoded><![CDATA[<p>@Ming (1) wp_app.php is just a test script - not surprising you had to make some changes. (2&amp;3) Might make sense to submit reports of some kind to WordPress, since those are requirements for WordPress AtomPub and not my plugin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ming</title>
		<link>http://singpolyma.net/2008/05/atompub-oauth-for-wordpress/#comment-93136</link>
		<dc:creator>Ming</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://singpolyma.net/?p=335#comment-93136</guid>
		<description>I finally run through your code after making some minor changes:
1) In wp_app.php, I had to hard-code the callback-url because otherwise the base_url is empty.
//$callback_url = "$base_url/wp_app.php?action=access";
2) At first SCRIPT_URI was undefined in my server setup. This was fixed by configuring virtualhost and enabling RewriteEngine module.
3) Finally, this thing got work after commenting out one line in wp-app.php: 
//$_SERVER['PATH_INFO'] = preg_replace( '/.*\/wp-app\.php/', '', $_SERVER['REQUEST_URI'] );
Then I was able to post on my Wordpress! Thanks for the work.</description>
		<content:encoded><![CDATA[<p>I finally run through your code after making some minor changes:<br />
1) In wp_app.php, I had to hard-code the callback-url because otherwise the base_url is empty.<br />
//$callback_url = &#034;$base_url/wp_app.php?action=access&#034;;<br />
2) At first SCRIPT_URI was undefined in my server setup. This was fixed by configuring virtualhost and enabling RewriteEngine module.<br />
3) Finally, this thing got work after commenting out one line in wp-app.php:<br />
//$_SERVER['PATH_INFO'] = preg_replace( &#039;/.*\/wp-app\.php/&#039;, &#034;, $_SERVER['REQUEST_URI'] );<br />
Then I was able to post on my Wordpress! Thanks for the work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ming</title>
		<link>http://singpolyma.net/2008/05/atompub-oauth-for-wordpress/#comment-90409</link>
		<dc:creator>Ming</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://singpolyma.net/?p=335#comment-90409</guid>
		<description>Thank you very much. I reapplied the patch manually after I found that the patch command did not work as expected.
Now it looks like this in file wp-app.php:  

		global $always_authenticate;
                if( !empty( $_SERVER['ORIG_PATH_INFO'] ) ) 
                      $path = $_SERVER['ORIG_PATH_INFO']; 
                else 
                      $path = $_SERVER['PATH_INFO'];  
		$method = $_SERVER['REQUEST_METHOD'];
		log_app('REQUEST',"$method $path\n================");

This is the dumped $SERVER (no PATH_INFO?):   

["SERVER_SOFTWARE"]=&#62;
  string(61) "Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.1 with Suhosin-Patch"
  ["SERVER_NAME"]=&#62;
  string(9) "localhost"
  ["SERVER_ADDR"]=&#62;
  string(9) "127.0.0.1"
  ["SERVER_PORT"]=&#62;
  string(2) "80"
  ["REMOTE_ADDR"]=&#62;
  string(9) "127.0.0.1"
  ["DOCUMENT_ROOT"]=&#62;
  string(9) "/var/www/"
  ["SERVER_ADMIN"]=&#62;
  string(19) "webmaster@localhost"
  ["SCRIPT_FILENAME"]=&#62;
  string(29) "/var/www/oauthtest/wp_app.php"
  ["REMOTE_PORT"]=&#62;
  string(5) "49426"
  ["GATEWAY_INTERFACE"]=&#62;
  string(7) "CGI/1.1"
  ["SERVER_PROTOCOL"]=&#62;
  string(8) "HTTP/1.1"
  ["REQUEST_METHOD"]=&#62;
  string(3) "GET"
  ["QUERY_STRING"]=&#62;
  string(13) "action=access"
  ["REQUEST_URI"]=&#62;
  string(35) "/oauthtest/wp_app.php?action=access"
  ["SCRIPT_NAME"]=&#62;
  string(21) "/oauthtest/wp_app.php"
  ["PHP_SELF"]=&#62;
  string(21) "/oauthtest/wp_app.php"
  ["REQUEST_TIME"]=&#62;
  int(1214026621)
  ["argv"]=&#62;
  array(1) {
    [0]=&#62;
    string(13) "action=access"
  }
  ["argc"]=&#62;
  int(1)
}


This is the description about how the error still happened (wp_app.php in another folder)
Once I clicked the test button, I was redirected to the Wordpress to authorize the consumer right. I then clicked yes, then I got the error of non-existent URL "http://localhost/wp_app.php?action=access", which should be "http://localhost/oauthtest/wp_app.php?action=access"
Tring to make it work, I changed "$callback_url = "$base_url/wp_app.php?action=access" to "$callback_url = "http://localhost/oauthtest/wp_app.php?action=access"" because I thought something is wrong with the base_url.
I then cliked the test button again, this time the authorization window did not show up (already approved), I got an error as 

"http://localhost/wordpress/wp-app.php/posts?oauth_version=1.0&#38;oauth_nonce=a6c0ce38cff5bf899d072867d0d4694e&#38;oauth_timestamp=1214025525&#38;oauth_consumer_key=ccaa282c3f6c66cf0b2491b9f152e11ad4bd822c&#38;oauth_token=faebda8608c455bfef6d2f0628fd5c055276659a&#38;oauth_signature_method=HMAC-SHA1&#38;oauth_signature=VzGlNOYOHhq1XaTL4wk9mWuiQsI%3D
string(215) "HTTP/1.1 404 Not Found"</description>
		<content:encoded><![CDATA[<p>Thank you very much. I reapplied the patch manually after I found that the patch command did not work as expected.<br />
Now it looks like this in file wp-app.php:  </p>
<p>		global $always_authenticate;<br />
                if( !empty( $_SERVER['ORIG_PATH_INFO'] ) )<br />
                      $path = $_SERVER['ORIG_PATH_INFO'];<br />
                else<br />
                      $path = $_SERVER['PATH_INFO'];<br />
		$method = $_SERVER['REQUEST_METHOD'];<br />
		log_app(&#039;REQUEST&#039;,&#034;$method $path\n================&#034;);</p>
<p>This is the dumped $SERVER (no PATH_INFO?):   </p>
<p>["SERVER_SOFTWARE"]=&gt;<br />
  string(61) &#034;Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.1 with Suhosin-Patch&#034;<br />
  ["SERVER_NAME"]=&gt;<br />
  string(9) &#034;localhost&#034;<br />
  ["SERVER_ADDR"]=&gt;<br />
  string(9) &#034;127.0.0.1&#034;<br />
  ["SERVER_PORT"]=&gt;<br />
  string(2) &#034;80&#034;<br />
  ["REMOTE_ADDR"]=&gt;<br />
  string(9) &#034;127.0.0.1&#034;<br />
  ["DOCUMENT_ROOT"]=&gt;<br />
  string(9) &#034;/var/www/&#034;<br />
  ["SERVER_ADMIN"]=&gt;<br />
  string(19) &#034;webmaster@localhost&#034;<br />
  ["SCRIPT_FILENAME"]=&gt;<br />
  string(29) &#034;/var/www/oauthtest/wp_app.php&#034;<br />
  ["REMOTE_PORT"]=&gt;<br />
  string(5) &#034;49426&#034;<br />
  ["GATEWAY_INTERFACE"]=&gt;<br />
  string(7) &#034;CGI/1.1&#034;<br />
  ["SERVER_PROTOCOL"]=&gt;<br />
  string(8) &#034;HTTP/1.1&#034;<br />
  ["REQUEST_METHOD"]=&gt;<br />
  string(3) &#034;GET&#034;<br />
  ["QUERY_STRING"]=&gt;<br />
  string(13) &#034;action=access&#034;<br />
  ["REQUEST_URI"]=&gt;<br />
  string(35) &#034;/oauthtest/wp_app.php?action=access&#034;<br />
  ["SCRIPT_NAME"]=&gt;<br />
  string(21) &#034;/oauthtest/wp_app.php&#034;<br />
  ["PHP_SELF"]=&gt;<br />
  string(21) &#034;/oauthtest/wp_app.php&#034;<br />
  ["REQUEST_TIME"]=&gt;<br />
  int(1214026621)<br />
  ["argv"]=&gt;<br />
  array(1) {<br />
    [0]=&gt;<br />
    string(13) &#034;action=access&#034;<br />
  }<br />
  ["argc"]=&gt;<br />
  int(1)<br />
}</p>
<p>This is the description about how the error still happened (wp_app.php in another folder)<br />
Once I clicked the test button, I was redirected to the Wordpress to authorize the consumer right. I then clicked yes, then I got the error of non-existent URL &#034;http://localhost/wp_app.php?action=access&#034;, which should be &#034;http://localhost/oauthtest/wp_app.php?action=access&#034;<br />
Tring to make it work, I changed &#034;$callback_url = &#034;$base_url/wp_app.php?action=access&#034; to &#034;$callback_url = &#034;http://localhost/oauthtest/wp_app.php?action=access&#034;" because I thought something is wrong with the base_url.<br />
I then cliked the test button again, this time the authorization window did not show up (already approved), I got an error as </p>
<p>&#034;http://localhost/wordpress/wp-app.php/posts?oauth_version=1.0&amp;oauth_nonce=a6c0ce38cff5bf899d072867d0d4694e&amp;oauth_timestamp=1214025525&amp;oauth_consumer_key=ccaa282c3f6c66cf0b2491b9f152e11ad4bd822c&amp;oauth_token=faebda8608c455bfef6d2f0628fd5c055276659a&amp;oauth_signature_method=HMAC-SHA1&amp;oauth_signature=VzGlNOYOHhq1XaTL4wk9mWuiQsI%3D<br />
string(215) &#034;HTTP/1.1 404 Not Found&#034;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
