imsun / gitment

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

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

Open shangyou opened 5 years ago

shangyou commented 5 years ago

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

tower1229 commented 5 years ago

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

isecret commented 5 years ago

https://github.com/imsun/gitment/issues/170#issuecomment-440206517

tower1229 commented 5 years ago

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

KHN190 commented 5 years ago

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

tower1229 commented 5 years ago

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

KHN190 commented 5 years ago

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

tower1229 commented 5 years ago

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

wsyks commented 5 years ago

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

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

guanpengchn commented 5 years ago

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

stevenjoezhang commented 5 years ago

将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 commented 5 years ago

将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 commented 5 years ago

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

<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 commented 5 years ago

https://cdn.jsdelivr.net/gh/theme-next/theme-next-gitment@1/gitment.browser.js

感谢感谢!

leafney commented 5 years ago

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

stevenjoezhang commented 5 years ago

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

leafney commented 5 years ago

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

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

handsomecheung commented 5 years ago

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

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

https://github.com/handsomecheung/gitment

MuYunyun commented 4 years ago

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

<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 commented 2 years ago

https://advance-esthetic.us/rf-facial-machines

alishakihn commented 11 months ago

@Flappy Bird It's useful!, thanks.