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

Fix deprecation warning on Faraday::Connection#authorization #60

Merged
merged 1 commit into from
Dec 16, 2021

Conversation

javierjulio
Copy link
Contributor

@javierjulio javierjulio commented Sep 30, 2021

This should fix #59 so library users can update to Faraday v1 with no deprecations reported.

Closes #59

Fixes Dwolla#59

> WARNING: `Faraday::Connection#authorization` is deprecated; it will be removed in version 2.0.
> While initializing your connection, use `#request(:authorization, ...)` instead.
> See https://lostisland.github.io/faraday/middleware/authentication for more usage info.

Followed the docs at https://lostisland.github.io/faraday/middleware/authentication which as noted the Bearer auth implementation is *unchanged* between v1 and v2. The v1 approach is listed at the bottom while the current docs are for v2 which is unreleased.
@javierjulio javierjulio force-pushed the fix-faraday-deprecation branch from c3e9d3e to 6facc4b Compare October 1, 2021 15:59
@javierjulio
Copy link
Contributor Author

Since we have extensive tests with our Dwolla integration, I can easily replicate the deprecation warning output by running our test suite. Once I apply this one line change as a monkey patch and re-run the tests, no deprecations are reported.

@tarricsookdeo tarricsookdeo merged commit cd69c0e into Dwolla:main Dec 16, 2021
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.

Deprecation warning with Faraday v1
2 participants