udap_security_test_kit 0.10.2 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99975cd9d20b91185600d35dca498008f7bd4dc7cb1ae66eb59c572298f55ab0
4
- data.tar.gz: 0ff38d8f44564d5fa998e1801f5dd9255613e7060ea78802194cdf8560c39596
3
+ metadata.gz: 495e85895f4799695634ba56d645f0f5633e2df1509fd9d03137928891db20a0
4
+ data.tar.gz: 6d03ca44673a27baf4a013fd161643e8ab6b117018213464983df9a044c782da
5
5
  SHA512:
6
- metadata.gz: 456628c19deb09f55ab5494e719d0045ea8a19ed93e314a4e75810d688e8f0d18acb1bf1c2261750b03bd6e1128720d662c80802686ddb4cd4a2e52e40868136
7
- data.tar.gz: 9a60fd1649675528705afe7a52f3d9057f411001fee1d641e9fffbd0995aad6ea6395dcb5a1d1e9ba6cd215fc5569cc78779663df479f5d67e967b66262c195c
6
+ metadata.gz: 632ba0cf8239c56b69281fa93a6199bfea02fd0e81eeb2d23552294298d17c247d68502712ac93d8e4f33aa3954c0495a3c305da20d867b93c80a3187f8ff35a
7
+ data.tar.gz: eaab5b47eeee7416f06bf6d9ec23db248b9f4a8deb1773f42319bbccc898c268f2a2a627db45c76077a5df1403e3cd1010576572d2803c6b08ec725408ef82b1
@@ -52,6 +52,10 @@ module UDAPSecurityTestKit
52
52
 
53
53
  receives_request :redirect
54
54
 
55
+ config options: {
56
+ redirect_uri: UDAPSecurityTestKit::UDAP_REDIRECT_URI
57
+ }
58
+
55
59
  def wait_message(auth_url)
56
60
  if config.options[:redirect_message_proc].present?
57
61
  return instance_exec(auth_url, &config.options[:redirect_message_proc])
@@ -1,3 +1,3 @@
1
1
  module UDAPSecurityTestKit
2
- VERSION = '0.10.2'.freeze
2
+ VERSION = '0.10.3'.freeze
3
3
  end
@@ -1,3 +1,4 @@
1
+ require 'uri'
1
2
  module UDAPSecurityTestKit
2
3
  class WellKnownEndpointTest < Inferno::Test
3
4
  include Inferno::DSL::Assertions
@@ -18,11 +19,23 @@ module UDAPSecurityTestKit
18
19
  title: 'FHIR Server Base URL',
19
20
  description: 'Base FHIR URL of FHIR Server. Discovery request will be sent to {baseURL}/.well-known/udap'
20
21
 
22
+ input :udap_community_parameter,
23
+ title: 'UDAP Community Parameter',
24
+ description: "If included, the designated community value will be appended as a query to the well-known
25
+ endpoint to indicate the client's trust of certificates from this trust community.",
26
+ optional: true
27
+
21
28
  output :udap_well_known_metadata_json
22
29
  makes_request :config
23
30
 
24
31
  run do
25
- get("#{udap_fhir_base_url.strip.chomp('/')}/.well-known/udap", name: :udap_well_known_metadata_json)
32
+ uri = URI.parse("#{udap_fhir_base_url.strip.chomp('/')}/.well-known/udap")
33
+ unless udap_community_parameter.blank?
34
+ queries = URI.decode_www_form(uri.query || '') << ['community', udap_community_parameter]
35
+ uri.query = URI.encode_www_form(queries)
36
+ end
37
+
38
+ get(uri.to_s, name: :udap_well_known_metadata_json)
26
39
  assert_response_status(200)
27
40
  assert_valid_json(response[:body])
28
41
  output udap_well_known_metadata_json: response[:body]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: udap_security_test_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen MacVicar
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-12-20 00:00:00.000000000 Z
12
+ date: 2025-01-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: inferno_core