Force login to flickr when authorizing apps

Feb 21, 2011 at 11:40 AM

Hi,

I have a web application where we setup flickr accounts and periodically publish photos to flickr. In my web application the user can get setup multiple flickr apps tied to different accounts each with an auth token stored against. The problem I have is that when setting up these accounts, setting the first account is fine, but the authorize call leaves the user logged in. Then when they set up the second account they are actually authorizing the app for the second account but against the still logged in first account. You can discern what is happening if you read the flickr authorize page and take in what it tells you, but it can seem a little confusing and result in incorrectly granting access. I read on a forum somewhere that you can use an undocumented url - /services/auth/fresh to force a login every time. Is it possible if Flickr.net can be made to support this?

 

Thanks,

 

John

Coordinator
Feb 21, 2011 at 12:36 PM

If you change the authentication URL to be something like http://www.flickr.com/services/auth/fresh?api_key=XXX&api_sig=YYY&perms=read instead of just http://www.flickr.com/services/auth?api_key=XXX&api_sig=YYY&perms=read it should do what you want.

Note the 'fresh' appended to the url path.

Sam