我正在尝试从代码https://github.com/prose/prose创建一个站点网站链接是http://editor.jus.in,我的主页URL和授权回调URL在https://github.com/settings/applications/new上应该是什么?
在应用程序文档中说
1.还用户请求github访问。
GET https://github.com/login/oauth/authorize
2.Github将重定向回到您的网站,包括下一步所需的临时代码。
您可以像这样抓住它:
var code = window.location.href.match(/?code=(.*)/)[1];
3.使用您的Gatekeeper实例重新要求实际令牌,该实例知道您的客户端_secret。
$.getJSON('http://localhost:9999/authenticate/'+code, function(data) {
console.log(data.token);
});
我应该在哪里进行这些更改?谢谢。
我需要在本地建立主分支