commit | be285a24d1aa113ead70a9e49c122f1a1806bdc6 | [log] [tgz] |
---|---|---|
author | Avery Pennarun <apenwarr@gmail.com> | Thu Dec 06 01:48:54 2012 -0500 |
committer | Avery Pennarun <apenwarr@gmail.com> | Mon Dec 10 02:03:36 2012 -0500 |
tree | de5770f18b682ba94a383f8448c7e93d414482d7 | |
parent | 6c6d471eeaada1df7fb222abae44297a11d0893b [diff] |
Add a tryOAuth2() callback in the data loader iframe. The idea is that if we aren't authorized to get some jsonp data (missing an auth header, cookie, etc), the data provider can call this callback and attempt to get an authorization key for the service. authtest.json is an example of how this works (the example doesn't actually validate the auth= parameter, it just checks to make sure it's there, and if not, tries to get a Google OAuth2 token for a random Google API).