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

https://gh-oauth.imsun.net证书过期了 #175

Open
shangyou opened this issue Nov 8, 2018 · 20 comments
Open

https://gh-oauth.imsun.net证书过期了 #175

shangyou opened this issue Nov 8, 2018 · 20 comments

Comments

@shangyou
Copy link

shangyou commented Nov 8, 2018

您可能正在连接一个伪装成“gh-oauth.imsun.net”的服务器
https://gh-oauth.imsun.net证书过期了

@tower1229
Copy link

加上之后发现因为域名问题根本不能用

@isecret
Copy link

isecret commented Nov 20, 2018

#170 (comment)

@tower1229
Copy link

自己fork了一个版本,修改了认证接口,修复了一些IE下的兼容问题。
https://github.com/tower1229/gitment-pro

@KHN190
Copy link

KHN190 commented Dec 19, 2018

@tower1229 尝试了下你的脚本,有什么限制吗?post 创建 issue 返回 422 Unprocessable Entity,但是登录 GitHub 是没有问题的。

@tower1229
Copy link

@KHN190 没有限制啊,新项目只替换了有问题的认证接口+兼容IE10,其他都没动,我这边自己试了试没问题,要不你试试我的博客能不能提交(http://refined-x.com/)

@KHN190
Copy link

KHN190 commented Dec 19, 2018

@tower1229 评论需要单独的 repo?不能使用 GitHub blog 的 issue 么?

@tower1229
Copy link

@KHN190 应该可以吧,不过项目的secret会公开,跟博客源码用一个仓库不知道有没有安全隐患

@wsyks
Copy link

wsyks commented Dec 27, 2018

@tower1229 尝试了下你的脚本,有什么限制吗?post 创建 issue 返回 422 Unprocessable Entity,但是登录 GitHub 是没有问题的。

我也是这样的问题,不知道您解决了么

@guanpengchn
Copy link

guanpengchn commented Jan 11, 2019

有一个repo可用,给出了源码并且给出了长期可用的跨域代理服务,cors-anywhere,嫌麻烦可以直接换Gitalk,他的源代码用的就是上述项目

@stevenjoezhang
Copy link

将cors-anywhere集成进去了,加了一个Accept的http头:

<script src="https://cdn.jsdelivr.net/gh/theme-next/theme-next-gitment@1/gitment.browser.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/theme-next/theme-next-gitment@1/default.css"/>

@carvendy
Copy link

carvendy commented Mar 18, 2019

将cors-anywhere集成进去了,加了一个Accept的http头:

<script src="https://cdn.jsdelivr.net/gh/theme-next/theme-next-gitment@1/gitment.browser.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/theme-next/theme-next-gitment@1/default.css"/>

具体怎么加?有demo?需要自己搭一个server么

@stevenjoezhang
Copy link

stevenjoezhang commented Mar 18, 2019

@carvendy 不用自己搭,按照这个教程:https://github.com/imsun/gitment#get-started
Install那一步换成这两个:

<script src="https://cdn.jsdelivr.net/gh/theme-next/theme-next-gitment@1/gitment.browser.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/theme-next/theme-next-gitment@1/default.css"/>

就行了

建议转 gitalk,可以兼容之前 gitment 的评论。

@fatfatson
Copy link

@leafney
Copy link

leafney commented Apr 29, 2019

这个是什么情况,开发者不维护了吗?github账号等不了,一直在转圈圈

@stevenjoezhang
Copy link

@leafney 开发者在代码中硬编码了一个代理服务器,这个代理服务器的证书过期了

@leafney
Copy link

leafney commented Apr 30, 2019

@leafney 开发者在代码中硬编码了一个代理服务器,这个代理服务器的证书过期了

恩,谢谢,了解了。我也发现是这个证书过期了

@handsomecheung
Copy link

是啊,试用的时候发现登录失败。

fork 后换了一个 proxy server,顺便把 client secret 明文写在 js 代码里的问题修复了。

https://github.com/handsomecheung/gitment

@MuYunyun
Copy link

MuYunyun commented Jan 1, 2020

@carvendy 不用自己搭,按照这个教程:https://github.com/imsun/gitment#get-started
Install那一步换成这两个:

<script src="https://cdn.jsdelivr.net/gh/theme-next/theme-next-gitment@1/gitment.browser.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/theme-next/theme-next-gitment@1/default.css"/>

就行了

@stevenjoezhang it's useful!, thanks.

@sariabiha
Copy link

@alishakihn
Copy link

@Flappy Bird It's useful!, thanks.

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