• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug APIs, Hacks & Tricks OAuth: invalid signature problem

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Aug-13-2012, 05:27 AM
#1
hmm is offline hmm OP
Beginner grinner
OAuth: invalid signature problem
Hi,

I am using a custom OAuth 1.0 code which works fine with Flickr, Twitter and others. But when I try to request a request token for SmugMug I get this error:
Quote:
{"stat":"fail","method":"smugmug.auth.getRequestTo ken","code":35,"message":"invalid signature"}
Probably I am missing some parameter or using something wrong. The string over which the signature is created using "consumerSecret+&" is
Quote:
GET&https%3A%2F%2Fapi.smugmug.com%2Fservices%2Fapi %2Fjson%2F1.3.0%2F&method%3Dsmugmug.auth.getReques Token%26oauth_consumer_key%3D4v0l1H1696I0k7EpGfyfG fSjnI2YIr4B%26oauth_nonce%3D1a3b4f53c6458f0748a7a5 1e90c3a404%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1344863322%26oauth_versio n%3D1.0
resulting in the final URL including the signature:
Quote:
https://api.smugmug.com/services/api/json/1.3.0/?method=smugmug.auth.getRequestToken&oauth_consume r_key=4v0l1H1696I0k7EpGfyfGfSjnI2YIr4B&oauth_nonce =1a3b4f53c6458f0748a7a51e90c3a404&oauth_signature_ method=HMAC-SHA1&oauth_timestamp=1344863322&oauth_version=1.0& oauth_signature=nD9BeB1HiiCNhTvAzGcingSQHEE%3D
The generated signature is correct when using my consumer secret (not shown here). Can anyone give a hint what might be wrong?

Regards,
Old Aug-13-2012, 06:13 AM
#2
hmm is offline hmm OP
Beginner grinner
Interestingly the finale url with the signature works when entered in the Firefox address bar, but it does not work if I send it through sockets in my app. What could be the problem resp. what might Firefox do while transmitting the url?
Old Aug-13-2012, 07:14 AM
#3
hmm is offline hmm OP
Beginner grinner
Found the solution. The url was double encoded by the socket implementation.
Tell The World!  
Similar Threads Thread Starter Forum Replies Last Post
Problem with uploading image via http put and oAuth suntsu SmugMug APIs, Hacks & Tricks 1 Jan-13-2012 03:07 AM
Big Problem accessing My site with Internet Explorer LCPHOTO Bug Reporting 8 Nov-19-2011 10:52 PM
Question about oAuth GetAccessToken suntsu SmugMug APIs, Hacks & Tricks 4 Oct-06-2011 09:49 PM
Thanks for deleting my signature. DRT-Maverick Dgrin Forum Support 5 Jul-15-2011 02:55 AM
problem viewing big thumbs with Firefox gblotter SmugMug Customization 4 Oct-13-2005 09:07 AM


Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump