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

Convert github auth code to use x/oauth2 #48598

Merged
merged 1 commit into from
Nov 18, 2024
Merged

Conversation

rosstimothy
Copy link
Contributor

Replaces the dependency on go-oidc/oauth2 with x/oauth2 in the github connector auth flows. One result of the switch is that it permitted a lot of simplification - the github client cache used by the auth server was removed entirely.

@rosstimothy rosstimothy added the no-changelog Indicates that a PR does not require a changelog entry label Nov 7, 2024
@rosstimothy rosstimothy marked this pull request as ready for review November 7, 2024 17:36
@github-actions github-actions bot requested review from camscale and kimlisa November 7, 2024 17:36
Copy link
Contributor

@camscale camscale left a comment

Choose a reason for hiding this comment

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

This all looks fine to me, but I don't know anything about the respective oauth2 packages to say if this is completely correct (i.e. maybe the old package has one default but the new has a different). If there's someone who is familiar with these packages, it would be worth getting them to give it a look-over I think.

Copy link
Contributor

@flyinghermit flyinghermit left a comment

Choose a reason for hiding this comment

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

Nice!

lib/auth/github.go Show resolved Hide resolved
@rosstimothy rosstimothy removed the request for review from kimlisa November 15, 2024 22:19
Replaces the dependency on go-oidc/oauth2 with x/oauth2 in the
github connector auth flows. One result of the switch is that it
permitted a lot of simplification - the github client cache used
by the auth server was removed entirely.
@rosstimothy rosstimothy added this pull request to the merge queue Nov 18, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 18, 2024
@rosstimothy rosstimothy added this pull request to the merge queue Nov 18, 2024
Merged via the queue into master with commit 3db72b0 Nov 18, 2024
39 checks passed
@rosstimothy rosstimothy deleted the tross/github_oauth branch November 18, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants