Options

OAuth Callback URL bug

Loki AstariLoki Astari Registered Users Posts: 1 Beginner grinner
i all,


I am building an app that I want to eventually be able to upload images to smugmug.
So I have registered my applications in my account MyPubCrawlMaps and MyWineInfo.

Thus authenticating users I use the callback URL

http://mywine-info.com/api/auth/callback?type=smugmug

So after authentication my users are re-directed back to my site. When you do the callback you make an assumption that there are no query parameters on the callback string and append

?oauth_token=c056b324f2c1b9fe850d90209b3625f1

Resulting in the following illegal URL

http://mywine-info.com/api/auth/callback?type=smugmug?oauth_token=c056b324f2c1b9fe850d90209b3625f1

This then breaks the code at my end.

I was hoping you could fix this small bug (if the callback contains query parameters the string you append should use '&' not '?' as the prefix).

Thanks Loki.

PS. my app is still in the very early stages of development so it it will be a while before I get to the point of photo upload. So no need to jump through hoops for me.
Sign In or Register to comment.