Update oauth2 gem dependency to 2.0#176
Merged
karlnaden merged 2 commits intoMar 13, 2026
Merged
Conversation
karlnaden
requested changes
Mar 12, 2026
…the form body regex in validation rules.
karlnaden
approved these changes
Mar 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR updates the
oauth2gem dependency from1.1to2.0.Changes
fhir_client.gemspecto requireoauth2 ~> 2.0.set_oauth2_authinlib/fhir_client/client.rbto explicitly useauth_scheme: :request_bodysince theoauth2v2 changed the default to:basic_auth. This preserves the existing token request behavior expected by SMART on FHIR providers.connection_opts: { proxy: proxy }as directclient.connectionmanipulation is no longer supported in the underlying Faraday 2.x dependency.lib/fhir_client/fhir_api_validation.jsonto preventJSON::ParserErrorduring response validation in modern Ruby environments.Testing Instructions
Unit Testing:
bundle installto install the updated dependencies.bundle exec rake test.UI / Integration Testing:
onc-certification-g10-test-kit).Gemfileto point thefhir_clientgem to this local branch (e.g.,gem 'fhir_client', path: '../fhir_client').http://localhost:4567).