Premshree Pillai ([info]premshree) wrote,
@ 2005-06-14 01:06:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Current music:Opeth - Deliverance

BIG Changes in the Flickr API

Stewart just posted about “big”—that’s the word he used—changes to the Flickr API. The major change is in the authentication API—something that I was expecting will happen (now that they’re part of Yahoo!).

So, briefly, this is how authentication will work:

  • In addition to the API key, Flickr will issue a shared secret to each application/library.
  • Whenever an application requires authentication, it goes through http://flickr.com/services/auth/. Here, the application has to pass an “API signature”, in addition to whatever other parameters. No user credentials are passed here.
  • If the user is not already logged in to Flickr, he’s asked to. And then he’s asked whether he wishes to be authenticated against the application.
  • The user can then choose to grant permissions to the application—read, write, delete.
  • Once all this is done, the user is redirected to the “callback URL”—which is registered with the API key. (The return from authentication from non web-based applications is slightly different.)

The important thing? Users don’t type their credentials in the app itself. One of the reasons for doing this is to prevent phishing. I’m sure there’s been some Yahoo! influence here: we’re paranoid about such things.

Oh, yeah, another interesting thing Stewart mentioned:

...
The second reason is that eventually we'll have users who don't know/don't have Flickr credentials. For example, we'd like to be able to let people sign in to Flickr with their Yahoo IDs and transparently create accounts. Those users won't have a Flickr email/pass, but they should be able to still use API-based apps that require authentication.
...

That shouldn’t be surprising, no?

I’m gonna have to redo flickr-ruby when I get time. (The old style will continue to work for some time, though.)



(Post a new comment)

MMS to Web Application (LiveJournal)
(Anonymous)
2005-06-13 09:26 pm UTC (link)
Super interesting article you wrote up on the MMS-2-web application (Ruby) for Livejournal.

we are working on trying to design an effective MMS-Web application currently. Maybe you can help out?

Thanks,

Email: michael@gofish.com

(Reply to this)


[info]bluesmoon
2005-06-13 10:27 pm UTC (link)
So how does the application know that it was flickr that called the callback url?

(Reply to this)(Thread)


[info]premshree
2005-06-14 03:26 am UTC (link)
Because that part is taken care by the same Flickr auth service.

(Reply to this)(Parent)(Thread)


(Anonymous)
2005-06-14 09:08 am UTC (link)
Or could it use the referrer ?

(Reply to this)(Parent)


[info]bluesmoon
2005-06-13 10:28 pm UTC (link)
BTW, I'd designed a similar auth mechanism for NCST's online course packages. We had multiple packages on multiple servers that needed to share auth credentials. Don't know how it's going now.

(Reply to this)


[info]ravi
2005-06-14 11:58 am UTC (link)
Dude, I have a CD for you that [info]sharat sent from Hyd. Are you at the lj meet and/or irq2's reception on Saturday?

(Reply to this)(Thread)


[info]premshree
2005-06-14 03:53 pm UTC (link)
I have two reasons to stay here, and one not to—I guess I’m gonna be here. And, yeah, Sharat told me about the CD. :-)

(Reply to this)(Parent)


Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…