Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github oauth 配置问题 #8

Closed
playedclass opened this issue Sep 19, 2016 · 4 comments
Closed

github oauth 配置问题 #8

playedclass opened this issue Sep 19, 2016 · 4 comments

Comments

@playedclass
Copy link

源码里的 回调URL填的是网站的,不能用,自己申请的,授权都不成功,回调URL是有什么格式吗
message: "Not Found"

@xiongwilee
Copy link
Owner

你是在开发环境下吗?有可能是缺一个API配置(开发环境下只有github:'https://github.com/'):

  // controller中请求各类数据前缀和域名的键值对
  api: {
    github_api: 'https://api.github.com/',
    github: 'https://github.com/',
  },

@playedclass
Copy link
Author

playedclass commented Sep 19, 2016

oauthInfo: {
error: "bad_verification_code",
error_description: "The code passed is incorrect or expired.",
error_uri: "https://developer.github.com/v3/oauth/#bad-verification-code"
}

最后是跳转到http://feclub.cn/user/oauth? ,我是用本地开发环境运行的,改了main.development.js的内容还是这个问题

@playedclass
Copy link
Author

换成自己的,可以了,谢了

@xiongwilee
Copy link
Owner

cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants