gitment icon indicating copy to clipboard operation
gitment copied to clipboard

强制https之后 GitHub API 报错

Open MuZhou233 opened this issue 6 years ago • 10 comments

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

MuZhou233 avatar Aug 13 '18 15:08 MuZhou233

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

longshilin avatar Sep 03 '18 11:09 longshilin

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

heropoo avatar Sep 18 '18 10:09 heropoo

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

MuZhou233 avatar Sep 18 '18 10:09 MuZhou233

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

longshilin avatar Sep 18 '18 15:09 longshilin

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

MuZhou233 avatar Sep 18 '18 15:09 MuZhou233

+1

changchangjie avatar Oct 08 '18 09:10 changchangjie

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

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

longshilin avatar Oct 08 '18 09:10 longshilin

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

changchangjie avatar Oct 08 '18 09:10 changchangjie

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

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

longshilin avatar Oct 08 '18 12:10 longshilin

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

longshilin avatar Oct 10 '18 12:10 longshilin