Googleのanonymous OAuth
Chrome ExtensionでのOAuthしたいけど、consumer_keyとかconsumer_secretとか隠せないけどどうすんねんと思って調べてた。
Tutorial: OAuth - Google Chrome
ドキュメントにこういうのあって、
var oauth = ChromeExOAuth.initBackgroundPage({ 'request_url': 'https://www.google.com/accounts/OAuthGetRequestToken', 'authorize_url': 'https://www.google.com/accounts/OAuthAuthorizeToken', 'access_url': 'https://www.google.com/accounts/OAuthGetAccessToken', 'consumer_key': 'anonymous', 'consumer_secret': 'anonymous', 'scope': 'https://docs.google.com/feeds/', 'app_name': 'My Google Docs Extension' });
anonymousってなんぞと思ってググったら
OAuth関連トピックキャッチアップ : Y!は1.0クローズ、Gはanonymous OAuthを実装 - r-weblife
というのがあるらいいことがわかった。
結局consumer_keyとかconsumer_secretは隠せなってことだよね、たぶん。