大概 109/02/02 開始我的信箱被連環轟炸一直收到 [GitHub API] Deprecation notice for authentication via URL query parameters,而這個主因其實是因為使用 Gitalk 所導致,所以這一篇就來紀錄一下該如何解決。
前言
大概 109/02/02 開始我的信箱被連環轟炸一直收到 [GitHub API] Deprecation notice for authentication via URL query parameters,而這個主因其實是因為使用 Gitalk 所導致,所以這一篇就來紀錄一下該如何解決。
問題
基本上一直收到以下這封信件
1 2 3 4 5 6 7 8 9 10 11 12 13
Hi @hsiangfeng,
On February 4th, 2020 at 05:58 (UTC) your application (Welcome.Web.World - blog) used its `client_id` and `client_secret` (with the User-Agent Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36) as part of a set of query parameters to access an endpoint through the GitHub API:
Please use Basic Authentication instead as using OAuth credentials in query parameters has been deprecated.
Depending on your API usage, we'll be sending you this email reminder at most once every 3 days. Just one URL that was accessed with a User-Agent combination will be listed in the email reminder, not all.
Visit https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api/#authenticating-using-query-parameters for more information.
gitalk: enable:true github_id:hsiangfeng# Github repo owner repo:hsiangfeng.github.io# Repository name to store issues client_id:# Github Application Client ID client_secret:# Github Application Client Secret accessToken:# 非常重要 admin_user:# GitHub repo owner and collaborators, only these guys can initialize github issues distraction_free_mode:true# Facebook-like distraction free mode # Gitalk's display language depends on user's browser or system environment # If you want everyone visiting your site to see a uniform language, you can set a force language value # Available values: en, es-ES, fr, ru, zh-CN, zh-TW language:zh-TW labels:Gitalk