I searched for the JSONP usages of Flickr's开发者_如何学C OAuth. Let me know whether it's supported.
There are only 2 supported methods, you cannot use OAuth for a whole login process using JSONP.
But, even if it's deprecated, the old API still exists, is usable and supports JSONP: deprecated flickr auth API.
Well, yes: http://www.flickr.com/services/api/explore/flickr.auth.oauth.getAccessToken
JSONP is JSON with padding, meaning wrapped in a function. Flicker oauth's looks like this:
jsonFlickrApi({ "auth": {
"access_token": {
"oauth_token": "",
"oauth_token_secret": ""
}
}, "stat": "ok" })
Edit (since I was downvoted):
This is the proper use of the flickr oauth API: http://www.flickr.com/services/api/auth.oauth.html everything is covered on signing and access token and how to get that token from a request token. If someone is serious about implementing the oauth process what you would get back as JSONP is the snippet I posted above. You can test it all from this link http://www.flickr.com/services/api/explore/flickr.auth.oauth.getAccessToken
精彩评论