• @guqing guqing commented on issue #6508 in halo-dev/halo

    ![image](https://private-user-images.githubusercontent.com/12021357/361294878-2c747167-ff2d-4b92-ba59-bef7733de9b0.png?
    目前我访问的地址是https,这个redirect_uri的协议会被替换为http,这个是halo的行为吗。

    同样的,说明从当前请求获得的协议是 http,检查 nginx 是否携带了协议,比如 proxy_set_header X-Forwarded-Proto $scheme;

    0 0
  • @guqing guqing commented on issue #6508 in halo-dev/halo

    数据库中有个配置叫redirectUri 它的默认配置是 {baseUri}/login/oauth2/code/github。 所以我倾向于是这个baseUri没有正确配置造成的,但是我没找到在哪配置这个变量。所以我就直接修改了这个值

    baseUri 是根据你的访问地址来自动获取的,比如你访问的是 https://yasy.run 那么从当前请求中获取到的地址就是这个域名,除非是 nginx 没有配置好导致无法从请求中获取到正确的访问地址

    0 0
  • @guqing guqing commented on issue #6508 in halo-dev/halo

    /kind support

    0 0
  • @guqing guqing commented on issue #6508 in halo-dev/halo

    检查你的 github oauth2 应用的 Authorization callback URL 是否正确

    image

    0 0
  • @guqing guqing created a review on pull request #6511 in halo-dev/halo

    /lgtm

    0 0
  • @guqing guqing created a review on pull request #6428 in halo-dev/halo

    /lgtm

    0 0
  • @guqing guqing created a review on pull request #6512 in halo-dev/halo

    /lgtm

    0 0
  • @guqing guqing created a review on pull request #6504 in halo-dev/halo

    /lgtm

    0 0
  • @guqing guqing created a review on pull request #6502 in halo-dev/halo

    /lgtm

    0 0
  • @guqing guqing created a review on pull request #6505 in halo-dev/halo

    /lgtm

    0 0