meteorlxy / vssue

:mailbox: A Vue-powered Issue-based Comment Plugin
https://vssue.js.org
MIT License
770 stars 106 forks source link

网址中的空格导致授权失败? #63

Closed cnguu closed 4 years ago

cnguu commented 4 years ago

我在我的网站中测试过

失败授权跳转:https://gleehub.com/?error=redirect_uri_mismatch&error_description=The%20redirect_uri%20MUST%20match%20the%20registered%20callback%20URL%20for%20this%20application.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch&state=Vssue

我并不清楚实际引起这个错误的原因:https://gleehub.com/?error=redirect_uri_mismatch&error_description=The redirect_uri MUST match the registered callback URL for this application.&error_uri=https://developer.github.com/apps/managing-oauth-apps/troubleshooting-authorization-request-errors/#redirect-uri-mismatch&state=Vssue

我猜测这是空格或者中文或者其它字符引起的

这是我使用的版本

  • "@vssue/api-github-v3": "^1.0.3"
  • "@vssue/vuepress-plugin-vssue": "^1.0.3"

vuepress 中的使用:

<ClientOnly>
    <Vssue :title="$page.title" />
</ClientOnly>
meteorlxy commented 4 years ago

简单看了一下,这个应该是 github 的问题,有空格 %20 就会报错:

还是建议避免在 uri 中出现这些字符吧,文件名还是纯英文之类的比较好

meteorlxy commented 4 years ago

噢对了,用了 vuepress-plugin-vssue 之后就不用 ClientOnly 了,插件里已经帮你加了

cnguu commented 4 years ago

@meteorlxy 蟹蟹,已修复,使用中文的原因