Chrome扩展程序oAuth请求重定向页面未加载

Jos*_*lat 5 google-chrome oauth google-chrome-extension

我正在开发与Google日历互动的Chrome扩展程序.我已经开源了,代码可以在GitHub上找到:https://github.com/joshholat/Add-to-Calendar-Chrome-Extension

它需要使用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'
Run Code Online (Sandbox Code Playgroud)

});

oauth.authorize(function(){alert("auth");});

abr*_*ham 1

确保您使用的是最新版本的 Chrome OAuth 示例代码。我知道在某个时候,Chrome 处理选项卡的方式进行了更新,并且 OAuth 示例已修补以再次工作。