Skip to content

chore(auth): Remove package:oauth2 dependency #3119

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

Closed
wants to merge 5 commits into from

Conversation

dnys1
Copy link
Contributor

@dnys1 dnys1 commented May 27, 2023

The Dart authors are deprecating package:oauth2 (dart-lang/tools#375). This means we can likely not expect to receive further updates. Currently, their package:http constraint doesn't allow the latest version (1.0.0) and this is the only package we use which brings http into our dependency tree.

Rather than force our customers to work around this, this PR has the minimum lift-and-shift required to remove package:oauth2 and by extension, package:http, dependency. It does this by copying over the subset of package:oauth2 we use and updating it to use AWSHttpClient instead.

Accuracy verified through CI and local e2e tests for all platforms.

Minimum lift-and-shift required to remove `package:oauth2` and by extension, `package:http`, dependency.
@dnys1 dnys1 force-pushed the fix/remove-oauth2-dep branch from 5f0c615 to ef7751d Compare May 27, 2023 18:51
@dnys1 dnys1 marked this pull request as ready for review May 30, 2023 18:41
@dnys1 dnys1 requested a review from a team as a code owner May 30, 2023 18:41
@dnys1 dnys1 force-pushed the fix/remove-oauth2-dep branch from b8672c2 to 8ab2720 Compare May 30, 2023 23:36
Copy link
Contributor

@Equartey Equartey left a comment

Choose a reason for hiding this comment

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

Good job reducing deps! Just had one non-blocking comment

Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also fork the unit tests for these files? I'm fine not taking them if you think our tests are sufficient.

@Albert221
Copy link

oauth2 package version 2.0.2 started to support http v1.0.0 - https://pub.dev/packages/oauth2/changelog#202

@dnys1
Copy link
Contributor Author

dnys1 commented Jun 1, 2023

Thanks for the heads up, @Albert221.

Closing in favor of #3132. Will reopen when oauth2 is officially deprecated.

@dnys1 dnys1 closed this Jun 1, 2023
@Jordan-Nelson Jordan-Nelson deleted the fix/remove-oauth2-dep branch October 20, 2023 18:41
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.

3 participants