imsun / gitment

A comment system based on GitHub Issues.
https://imsun.github.io/gitment/
MIT License
4.06k stars 349 forks source link

强制https之后 GitHub API 报错 #166

Open MuZhou233 opened 6 years ago

MuZhou233 commented 6 years ago

error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch

longshilin commented 6 years ago

你可能需要在你web项目的setting中打开https开关,如下面最后那样(ps:我强制打开是ok的) image

heropoo commented 6 years ago

我的也报错,现在处理好了吗?

MuZhou233 commented 6 years ago

还没有,希望有人可以解决

longshilin commented 6 years ago

能具体描述下 你们遇到的问题么,也许我可以提供帮助:)

MuZhou233 commented 6 years ago

我使用的时候 在请求授权时还可以正常登录,但跳转回自己的页面时跳转地址后面就会出现问题描述中的内容,并且网页上仍然显示未登录

changchangjie commented 6 years ago

+1

longshilin commented 6 years ago

so 你们这个地方的地址是否填写正确了,这里需要改为https头 @Mu-Zhou @changchangjie @heropoo

查看地址为:https://github.com/settings/developers image

changchangjie commented 6 years ago

配成https不出现那个问题了,但是点击登录会有下面的提示弹框,然后一直处于加载页面 image image

longshilin commented 5 years ago

按照网上的教程一步一步配好,每个属性值都要填对,你再检查检查 @changchangjie

REF: https://imsun.net/posts/gitment-introduction/ http://xintq.net/2017/05/02/use-gitment-for-comment/

longshilin commented 5 years ago

可以参考这个:https://github.com/imsun/gitment/issues/170 @changchangjie