Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub auth to get emails uses ?access_token=... which is deprecated #102

Closed
benjie opened this issue Feb 4, 2020 · 3 comments · Fixed by #118
Closed

GitHub auth to get emails uses ?access_token=... which is deprecated #102

benjie opened this issue Feb 4, 2020 · 3 comments · Fixed by #118

Comments

@benjie
Copy link
Member

benjie commented Feb 4, 2020

Hi @benjie,

On February 4th, 2020 at 08:51 (UTC) your application (Graphile Starter (Heroku)) used an access token (with the User-Agent passport-github) as part of a query parameter to access an endpoint through the GitHub API:

https://api.github.com/user/emails

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

Might be sufficient to just upgrade passport-github?

@singingwolfboy
Copy link
Collaborator

Relevant issue is here: jaredhanson/passport-github#75

Looks like passport-github is unmaintained, and we should probably switch to passport-github2

@benjie
Copy link
Member Author

benjie commented Feb 7, 2020

Lets give Jared a few days to respond first. I'd rather keep using the module from the Passport.js author if possible; if it is unmaintained hopefully he'll archive it and hand over the reins.

@benjie
Copy link
Member Author

benjie commented Feb 26, 2020

As per http://www.passportjs.org/packages/passport-github2/ it seems that switching is sensible and supported 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants