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

Upgrade omniauth-github to fix Github login deprecation notice #6022

Merged
merged 1 commit into from Feb 11, 2020
Merged

Upgrade omniauth-github to fix Github login deprecation notice #6022

merged 1 commit into from Feb 11, 2020

Conversation

rhymes
Copy link
Contributor

@rhymes rhymes commented Feb 11, 2020

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Recently both @ludwiczakpawel and I received a deprecation email from GitHub as they are changing the way the HTTP clients are supposed to send authentication params (yes to headers, no to URL params).

This is the deprecation notice:

Please use the Authorization HTTP header instead as using the access_token query parameter is deprecated and will be removed July 1st, 2020.
Depending on your API usage, we'll be sending you this email reminder once every 3 days.
Visit https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api/#authenticating-using-query-parameters for more information.

Tested this manually, it works

NOTE: Octokit, Github's client, has already been upgraded to a correct version: https://github.com/octokit/octokit.rb/releases/tag/v4.16.0

Related Tickets & Documents

Closes #5899

@pr-triage pr-triage bot added the PR: unreviewed bot applied label for PR's with no review label Feb 11, 2020
@rhymes rhymes requested review from a team, atsmith813 and nickytonline and removed request for a team February 11, 2020 17:02
@pr-triage pr-triage bot added PR: reviewed-approved bot applied label for PR's where reviewer approves changes and removed PR: unreviewed bot applied label for PR's with no review labels Feb 11, 2020
@vaidehijoshi
Copy link
Contributor

@rhymes doesn't this fix #5899?

Copy link
Contributor

@atsmith813 atsmith813 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for including the links in the description! LGTM 💯

@rhymes
Copy link
Contributor Author

rhymes commented Feb 11, 2020

Sorry @vaidehijoshi, I forgot about the issue :( Going to update the description so it automatically fixes it!

@vaidehijoshi
Copy link
Contributor

@rhymes thanks so much for doing this! i just got that GitHub email again yesterday, so this is really great timing 🤗

Copy link
Contributor

@vaidehijoshi vaidehijoshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks okay to me! I didn't test it out locally but looking at the other changes in 1.4.0, they appear relatively minor aside from the headers change.

Copy link
Contributor

@nickytonline nickytonline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@benhalpern benhalpern merged commit 041ad23 into forem:master Feb 11, 2020
@pr-triage pr-triage bot added PR: merged bot applied label for PR's that are merged and removed PR: reviewed-approved bot applied label for PR's where reviewer approves changes labels Feb 11, 2020
@rhymes rhymes deleted the rhymes/fix-github-login-deprecation branch February 12, 2020 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: merged bot applied label for PR's that are merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update GitHub authentication to remove URL query parameters
6 participants