0
我已经创建了一个插件,通过我对/login.jsp和/secure/Dashboard.jspa的登录小工具的谷歌登录按钮。JIRA登录与谷歌认证
一切工作好上/login.jsp但谷歌API不装上/dashboard.jspa。 在我的.js: -
AJS.$(function() {
var po = document.createElement("script");
po.type = "text/javascript";
po.async = true;
po.src = "https://apis.google.com/js/client:platform.js";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(po, s);
});
gapi.auth.signIn({
callback: gPSignInCallback,
clientid: CLIENT_ID,
cookiepolicy: "single_host_origin",
approvalprompt: "force",
requestvisibleactions: "http://schema.org/AddAction",
scope: "https://www.googleapis.com/auth/plus.login email"
})
上/dashboard.jspa页gapi.auth是取消定义是在控制台上抛出。
谢谢@Deepak,得到了一些解决方案,但仍得到一个错误“RPC:请求被拒绝(坏原点):https://accounts.google.com “ –