我正在研究与Google日历交互的Chrome扩展程序。我已经开源了,代码可以在GitHub上找到:https://github.com/joshholat/Add-to-Calendar-Chrome-ExtensionChrome扩展程序oAuth请求重定向页面无法加载
它需要使用Google的oAuth进行授权才能编辑用户日历。直到最近,这工作正常。但是,有一天它出于某种原因停止了工作。当我执行下面的代码时,它会从oauth中打开一个新的选项卡,该选项卡应该要求获得许可,但该页面从不加载,而是冻结在“重定向...”上。因此,我无法授权和测试我的代码。
想法?
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': 'http://www.google.com/calendar/feeds/',
'app_name': 'Add Events to Google Calendar'
});
oauth.authorize(函数(){ 警报( “AUTH”); });