danriegsecker / as3flickrlib

Automatically exported from code.google.com/p/as3flickrlib
0 stars 0 forks source link

Auth.checkToken() signing should be turned on #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use Auth.checkToken(token)

What is the expected output? What do you see instead?
With a proper token the right credentials should be returned. Instead
checkToken now returns an error. 
The problem is the call to MethodGroupHelper.invokeMethod, the fourth
parameter (signing) should be set to true. Since the Flickr API wants you
to; http://www.flickr.com/services/api/flickr.auth.checkToken.html

Solution:
Change:
public function checkToken( token:String ):void {
// Let the Helper do the work to invoke the method
MethodGroupHelper.invokeMethod( _service, checkToken_result, 
"flickr.auth.checkToken", 
false,
new NameValuePair( "auth_token", token ) );
}

into:
public function checkToken( token:String ):void {
// Let the Helper do the work to invoke the method
MethodGroupHelper.invokeMethod( _service, checkToken_result, 
"flickr.auth.checkToken", 
true,
new NameValuePair( "auth_token", token ) );
}             

Original issue reported on code.google.com by theo.lag...@gmail.com on 11 Apr 2008 at 11:19

GoogleCodeExporter commented 9 years ago
I can confirm that this is a bug and its patch are correct.

Original comment by emddudley on 4 Jun 2008 at 9:00

GoogleCodeExporter commented 9 years ago
this has been fixed in source.

Original comment by mikechambers on 26 Aug 2008 at 5:22