pacmanity icon indicating copy to clipboard operation
pacmanity copied to clipboard

Using the `access_token` query parameter is deprecated

Open zeronoises opened this issue 5 years ago • 2 comments

Just got an automated email from Github after my Pacminity Gist was successfully updated:

Hi @zeronoises,

On February 3rd, 2020 at 23:13 (UTC) your personal access token (The gist gem (2019-03-20 21:20:34 +0000)) using gist/5.0.0 (Net::HTTP, ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]) was used as part of a query parameter to access an endpoint through the GitHub API:

https://api.github.com/gists/6950c72c81e010386d012e8b84641b9a

Please use the Authorization HTTP header instead, as using the access_token query parameter is deprecated.

Depending on your API usage, we'll be sending you this email reminder once every 3 days for each token and User-Agent used in API calls made on your behalf. Just one URL that was accessed with a token and 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.

Thanks, The GitHub Team

zeronoises avatar Feb 03 '20 23:02 zeronoises

This is a problem with gist rather than with pacmanity itself. Though to be honest I don't think it can be fixed - https logins through tokens don't seem to be supported at all any more. Maybe by switching to ssh authentication...? I have opened an issue there.

GiorgioGhisotti avatar Feb 04 '20 13:02 GiorgioGhisotti

as per issue, and this commit are there any plans for utilizing Host Header instead? Thank you for this very useful tool!

cirfis avatar Feb 08 '20 14:02 cirfis