After using github-backup recently with my account username and password (to avoid the limits for anonymous users), I got the mails below from GitHub about password authentication being deprecated. It would be nice to be able to continue to authenticate to get the higher API usage limits.
The latest GitHub blog post about this issue is available here.
In it they say that they will disable password authentication in November 2020.
The first email I got:
Subject: [GitHub] Deprecation Notice
Hi @pabs3,
You recently used a password to access an endpoint through the GitHub API using github.hs/0.7.4. We will deprecate basic authentication using password to this endpoint soon:
https://api.github.com/repositories/105323641/milestones
We recommend using a personal access token (PAT) with the appropriate scope to access this endpoint instead. Visit https://github.com/settings/tokens for more information.
Thanks, The GitHub Team
The latest email from GitHub says this instead:
Subject: [GitHub] Deprecation Notice
Hi @pabs3,
On July 12th, 2020 at 01:41 (UTC) you used a password to access an endpoint through the GitHub API using github.hs/0.7.4:
https://api.github.com/repositories/120820726/forks
Basic authentication using a password to the API is deprecated and will soon no longer work. Visit https://developer.github.com/changes/2020-02-14-deprecating-password-auth/ for more information around suggested workarounds and removal dates.
Thanks, The GitHub Team
Unless this is an OAuth token, it does not look like the github library supports it yet. http://hackage.haskell.org/package/github-0.24/docs/GitHub-Auth.html
Though there is the generic setAuthRequest which could probably be used to implement it, it doesn't seem right to put the code in github-backup.