Skip to content
This repository was archived by the owner on Jan 18, 2021. It is now read-only.

Fixed GitHub authorization#871

Merged
mockitoguy merged 2 commits into
mockito:masterfrom
shestee:master
Jul 4, 2020
Merged

Fixed GitHub authorization#871
mockitoguy merged 2 commits into
mockito:masterfrom
shestee:master

Conversation

@shestee

@shestee shestee commented Jun 26, 2020

Copy link
Copy Markdown
Contributor

GitHub will no longer support authentication through query parameters (reported in issue #864; more info: https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api/#authenticating-using-query-parameters, https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param/).
To deal with this issue there was a need to move authentication to the connection header.
It was done in GitHubListFetcher and GitHubObjectFetcher classes. Followed by this refactor there was also a necessity to refactor GitHubContributorsFetcher, RecentContributorsFetcher and
GitHubTicketFetcher classes.

shestee added 2 commits June 23, 2020 18:22
As GitHub will support authentication through query parameters
no more, it is needed to move authentication to the connection header.
It was done in GitHubListFetcher and GitHubObjectFetcher classes. After this there
was a necessity to refactor GitHubContributorsFetcher, RecentContributorsFetcher and
GitHubTicketFetcher classes.
In order to avoid conditional complexity 'if' statement was removed and authorization token was moved to a field and assigned in the constructor.
@mockitoguy

Copy link
Copy Markdown
Member

I'm going to merge it because I cannot reproduce the failure locally so I think it's a red herring. The change is useful and avoid deprecation of GitHub API.

@mockitoguy mockitoguy merged commit 55c9e20 into mockito:master Jul 4, 2020
shardulm94 added a commit to linkedin/coral that referenced this pull request Oct 29, 2020
Remove shipkit's dependence on a now deprecated Github API which will stop working in March 2021 (was October 2020 previously) mockito/shipkit#871

Tested by running ./gradlew performRelease -PdryRun locally
funcheetah pushed a commit to linkedin/coral that referenced this pull request Nov 18, 2020
Remove shipkit's dependence on a now deprecated Github API which will stop working in March 2021 (was October 2020 previously) mockito/shipkit#871

Tested by running ./gradlew performRelease -PdryRun locally
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants