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

Cabot using deprecated access_token GitHub query parameter #698

Open
jakubgs opened this issue Oct 16, 2020 · 4 comments
Open

Cabot using deprecated access_token GitHub query parameter #698

jakubgs opened this issue Oct 16, 2020 · 4 comments

Comments

@jakubgs
Copy link

jakubgs commented Oct 16, 2020

When I used GitHub OAuth with Cabot I received the following warning in the mail:

Hello there!

On October 16th, 2020 at 11:54 (UTC) your application (Cabot Canaries) used an access token (with the User-Agent python-requests/2.13.0) as part of a query parameter to access an endpoint through the GitHub API.

https://api.github.com/user

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 on a monthly basis.

Visit https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param for more information about suggested workarounds and removal dates.

Thanks,
The GitHub Team

It appears that the access_token query parameter will be removed in roughly 8 months:

All authentication using query parameters will return a status code of 401 like all other auth failures starting on:
May 5, 2021 at 16:00 UTC

For more details: https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param

@jakubgs
Copy link
Author

jakubgs commented Mar 18, 2021

The date of the first brownout has passed yesterday. Full schedule:

Brownouts

During a brownout, authentication using query parameters will temporarily fail. The goal is to trigger alerts (assuming there are any) on our customers' services to help them find unmigrated authentication calls.

The brownouts are scheduled for:

  • March 17, 2021
  • From 07:00 UTC to 10:00 UTC
  • From 16:00 UTC to 19:00 UTC
  • April 14, 2021
  • From 07:00 UTC to 10:00 UTC
  • From 16:00 UTC to 19:00 UTC

Removal date

All authentication using query parameters will return a status code of 401 like all other auth failures starting on:

  • May 5, 2021 at 16:00 UTC

@jakubgs
Copy link
Author

jakubgs commented May 25, 2021

Looks like they have moved the removal date to 8th of September:
https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param/

@jakubgs
Copy link
Author

jakubgs commented Sep 15, 2021

Looks like we have passed the September 8th deadline and now OAuth for GitHub is broken:

image

jakubgs added a commit to status-im/cabot that referenced this issue Sep 15, 2021
arachnys#698

Signed-off-by: Jakub Sokołowski <jakub@status.im>
@jakubgs
Copy link
Author

jakubgs commented Sep 15, 2021

I've fixed this in our fork by upgrading the social-auth-core and social-auth-app-django packages: status-im@cd14ac6b

I also had to pin Pip at 20.3.4 because 21.0 drops support for Python 2: status-im@8bc5a00a
And had to upgrade the Docker image to fix build of cryptography package: status-im@4461771e

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

No branches or pull requests

1 participant