8000 Migrate Github API authentication to new spec by joao-p-marques · Pull Request #54 · acsone/git-aggregator · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Migrate Github API authentication to new spec #54

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

Merged
merged 1 commit into from
Aug 26, 2021

Conversation

joao-p-marques
Copy link
Contributor

Starting on September 8 2021, it will no longer be possible to authenticate API requests passing the token as a query parameter.
Instead, it should be passed in the header.
See https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param/

@Tecnativa
TT31500

ping @yajo @sbidoul

@codecov
Copy link
codecov bot commented Aug 26, 2021

Codecov Report

Merging #54 (98aeeb8) into master (2f7895f) will decrease coverage by 0.21%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #54      +/-   ##
==========================================
- Coverage   81.65%   81.44%   -0.22%     
==========================================
  Files           6        6              
  Lines         387      388       +1     
==========================================
  Hits          316      316              
- Misses         71       72       +1     
Impacted Files Coverage Δ
git_aggregator/repo.py 70.89% <0.00%> (-0.34%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2f7895f...98aeeb8. Read the comment docs.

@sbidoul
Copy link
Member
sbidoul commented Aug 26, 2021

Yep, looks good. Can you add a changelog entry ?

@joao-p-marques
Copy link
Contributor Author

Sure, what would be the version bump? 2.1?

@sbidoul
Copy link
Member
sbidoul commented Aug 26, 2021

2.1 sounds good, yes

Starting on September 8 2021, it will no longer be possible to authenticate API requests passing the token as a query parameter.
Instead, it should be passed in the header.
See https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param/

TT31500
@joao-p-marques
Copy link
Contributor Author

Thanks, change done 👍

@sbidoul sbidoul merged commit 1047659 into acsone:master Aug 26, 2021
@yajo yajo deleted the fix-gh-api-auth branch August 27, 2021 06:23
@joao-p-marques
Copy link
Contributor Author

@sbidoul Github already blocked the URL parameter authentication, and it now produces a 400: Bad Request when you use it with a token. Could you push a release with this change please so that this fix is included?

@sbidoul
Copy link
Member
sbidoul commented Sep 22, 2021

@joao-p-marques I just tagged 2.1.0. It should land on PyPI soon.

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 this pull request may close these issues.

2 participants
0