Chrome 확장 프로그램에 OAuth를 통합하려고합니다. 나는이 튜토리얼을 구글에 따르고있다 : https://developer.chrome.com/extensions/tut_oauth.htmlOAuth가 포함 된 Chrome 확장 프로그램
나는 background.js (나를 정의하고 background.html에 의해로드 됨)에서 ExOauth를 만든다.
onAuthorized = function() {
// Start my application logic.
};
오전 내가 여기 뭔가가 : 여기
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': Test app'
});
oauth.authorize(onAuthorized);
는 OnAuthorized 방법? 확장 프로그램을로드하면 여러 개의 "리디렉션 ...."탭이 열립니다.
나는 여전히이 문제가있어 새로운 탭을 열어 둡니다. 어떻게 해결 했니? – avi