Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fhir_client.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'fhir_stu3_models', '>= 3.1.1'
spec.add_dependency 'fhir_dstu2_models', '>= 1.1.1'
spec.add_dependency 'nokogiri', '>= 1.10.4'
spec.add_dependency 'oauth2', '~> 1.1'
spec.add_dependency 'oauth2', '~> 2.0'
spec.add_dependency 'rack', '>= 1.5'
spec.add_dependency 'rest-client', '~> 2.0'
spec.add_dependency 'tilt', '>= 1.1'
Expand Down
5 changes: 3 additions & 2 deletions lib/fhir_client/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,11 @@ def set_oauth2_auth(client, secret, authorize_path, token_path, site = nil)
site: site || @base_service_url,
authorize_url: authorize_path,
token_url: token_path,
raise_errors: true
raise_errors: true,
auth_scheme: :request_body
}
options[:connection_opts] = { proxy: proxy } unless proxy.nil?
Comment thread
abhinandan2012 marked this conversation as resolved.
client = OAuth2::Client.new(client, secret, options)
client.connection.proxy(proxy) unless proxy.nil?
@client = client.client_credentials.get_token
end

Expand Down
2 changes: 1 addition & 1 deletion lib/fhir_client/fhir_api_validation.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@
"Accept": "optional",
"Prefer": false
},
"body": { "regex": "([\w\-]+(=[\w\-.:\/\|]*)?(&[\w\-]+(=[\w\-.:\/\|]*)?)*)?" }
Comment thread
abhinandan2012 marked this conversation as resolved.
"body": { "regex": "([\\\\w\\\\-]+(=[\\\\w\\\\-.:\\\\/\\\\|]*)?(&[\\\\w\\\\-]+(=[\\\\w\\\\-.:\\\\/\\\\|]*)?)*)?" }
},
"response": {
"status": [200],
Expand Down