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

FI-3586: Migrate to authinfo #228

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ source "https://rubygems.org"

gemspec

gem 'smart_app_launch_test_kit',
git: 'https://github.com/inferno-framework/smart-app-launch-test-kit.git',
branch: 'fi-3093-use-auth-info'

group :development, :test do
gem 'debug'
gem 'rack-test'
Expand Down
27 changes: 17 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
GIT
remote: https://github.com/inferno-framework/smart-app-launch-test-kit.git
revision: 7951cdd61c1189df1e967239707151378d72bf98
branch: fi-3093-use-auth-info
specs:
smart_app_launch_test_kit (0.5.0)
inferno_core (>= 0.6.3)
json-jwt (~> 1.15.3)
jwt (~> 2.6)
tls_test_kit (~> 0.3.0)

PATH
remote: .
specs:
us_core_test_kit (0.10.0)
inferno_core (>= 0.6.1)
inferno_core (>= 0.6.3)
smart_app_launch_test_kit (>= 0.5.0)
tls_test_kit (~> 0.3.0)

Expand Down Expand Up @@ -137,7 +148,7 @@ GEM
httpclient (2.8.3)
i18n (1.14.7)
concurrent-ruby (~> 1.0)
inferno_core (0.6.2)
inferno_core (0.6.3)
activesupport (~> 6.1.7.5)
base62-rb (= 0.3.1)
blueprinter (= 0.25.2)
Expand Down Expand Up @@ -178,12 +189,12 @@ GEM
base64
kramdown (2.5.1)
rexml (>= 3.3.9)
logger (1.6.5)
logger (1.6.6)
method_source (1.1.0)
mime-types (3.6.0)
logger
mime-types-data (~> 3.2015)
mime-types-data (3.2025.0107)
mime-types-data (3.2025.0204)
mini_portile2 (2.8.8)
minitest (5.25.4)
multi_json (1.15.0)
Expand Down Expand Up @@ -227,7 +238,7 @@ GEM
puma (5.6.9)
nio4r (~> 2.0)
racc (1.8.1)
rack (2.2.10)
rack (2.2.11)
rack-test (2.2.0)
rack (>= 1.3)
rake (13.2.1)
Expand Down Expand Up @@ -264,11 +275,6 @@ GEM
connection_pool (>= 2.3.0)
rack (>= 2.2.4)
redis-client (>= 0.19.0)
smart_app_launch_test_kit (0.5.0)
inferno_core (>= 0.6.2)
json-jwt (~> 1.15.3)
jwt (~> 2.6)
tls_test_kit (~> 0.3.0)
sqlite3 (1.7.3)
mini_portile2 (~> 2.8.0)
sqlite3 (1.7.3-arm64-darwin)
Expand Down Expand Up @@ -315,6 +321,7 @@ DEPENDENCIES
factory_bot (~> 6.1)
rack-test
rspec (~> 3.10)
smart_app_launch_test_kit!
us_core_test_kit!
webmock (~> 3.11)

Expand Down
42 changes: 7 additions & 35 deletions config/presets/inferno_reference_server_311_preset.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,13 @@
"value": "https://inferno.healthit.gov/reference-server/r4"
},
{
"name": "smart_credentials",
"type": "oauth_credentials",
"title": "OAuth Credentials",
"optional": true,
"value": "{\"access_token\":\"SAMPLE_TOKEN\"}"
},
{
"name": "standalone_client_id",
"type": "text",
"title": "Standalone Client ID",
"description": "Client ID provided during registration of Inferno as a standalone application",
"value": "SAMPLE_CONFIDENTIAL_CLIENT_ID"
},
{
"name": "standalone_client_secret",
"type": "text",
"title": "Standalone Client Secret",
"description": "Client Secret provided during registration of Inferno as a standalone application",
"value": "SAMPLE_CONFIDENTIAL_CLIENT_SECRET"
},
{
"name": "ehr_client_id",
"type": "text",
"value": "SAMPLE_CONFIDENTIAL_CLIENT_ID"
},
{
"name": "ehr_client_secret",
"type": "text",
"optional": false,
"value": "SAMPLE_CONFIDENTIAL_CLIENT_SECRET"
},
{
"name": "client_auth_type",
"type": "text",
"value": "confidential_symmetric"
"name": "smart_auth_info",
"type": "auth_info",
"value": {
"auth_type": "public",
"use_discovery": "true",
"client_id": "SAMPLE_PUBLIC_CLIENT_ID"
}
},
{
"name": "patient_ids",
Expand Down
42 changes: 7 additions & 35 deletions config/presets/inferno_reference_server_400_preset.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,13 @@
"value": "https://inferno.healthit.gov/reference-server/r4"
},
{
"name": "smart_credentials",
"type": "oauth_credentials",
"title": "OAuth Credentials",
"optional": true,
"value": "{\"access_token\":\"SAMPLE_TOKEN\"}"
},
{
"name": "standalone_client_id",
"type": "text",
"title": "Standalone Client ID",
"description": "Client ID provided during registration of Inferno as a standalone application",
"value": "SAMPLE_CONFIDENTIAL_CLIENT_ID"
},
{
"name": "standalone_client_secret",
"type": "text",
"title": "Standalone Client Secret",
"description": "Client Secret provided during registration of Inferno as a standalone application",
"value": "SAMPLE_CONFIDENTIAL_CLIENT_SECRET"
},
{
"name": "ehr_client_id",
"type": "text",
"value": "SAMPLE_CONFIDENTIAL_CLIENT_ID"
},
{
"name": "ehr_client_secret",
"type": "text",
"optional": false,
"value": "SAMPLE_CONFIDENTIAL_CLIENT_SECRET"
},
{
"name": "client_auth_type",
"type": "text",
"value": "confidential_symmetric"
"name": "smart_auth_info",
"type": "auth_info",
"value": {
"auth_type": "public",
"use_discovery": "true",
"client_id": "SAMPLE_PUBLIC_CLIENT_ID"
}
},
{
"name": "patient_ids",
Expand Down
42 changes: 7 additions & 35 deletions config/presets/inferno_reference_server_501_preset.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,13 @@
"value": "https://inferno.healthit.gov/reference-server/r4"
},
{
"name": "smart_credentials",
"type": "oauth_credentials",
"title": "OAuth Credentials",
"optional": true,
"value": "{\"access_token\":\"SAMPLE_TOKEN\"}"
},
{
"name": "standalone_client_id",
"type": "text",
"title": "Standalone Client ID",
"description": "Client ID provided during registration of Inferno as a standalone application",
"value": "SAMPLE_CONFIDENTIAL_CLIENT_ID"
},
{
"name": "standalone_client_secret",
"type": "text",
"title": "Standalone Client Secret",
"description": "Client Secret provided during registration of Inferno as a standalone application",
"value": "SAMPLE_CONFIDENTIAL_CLIENT_SECRET"
},
{
"name": "ehr_client_id",
"type": "text",
"value": "SAMPLE_CONFIDENTIAL_CLIENT_ID"
},
{
"name": "ehr_client_secret",
"type": "text",
"optional": false,
"value": "SAMPLE_CONFIDENTIAL_CLIENT_SECRET"
},
{
"name": "client_auth_type",
"type": "text",
"value": "confidential_symmetric"
"name": "smart_auth_info",
"type": "auth_info",
"value": {
"auth_type": "public",
"use_discovery": "true",
"client_id": "SAMPLE_PUBLIC_CLIENT_ID"
}
},
{
"name": "patient_ids",
Expand Down
60 changes: 25 additions & 35 deletions config/presets/inferno_reference_server_610_preset.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,13 @@
"value": "https://inferno.healthit.gov/reference-server/r4"
},
{
"name": "smart_credentials",
"type": "oauth_credentials",
"title": "OAuth Credentials",
"optional": true,
"value": "{\"access_token\":\"SAMPLE_TOKEN\"}"
},
{
"name": "standalone_client_id",
"type": "text",
"title": "Standalone Client ID",
"description": "Client ID provided during registration of Inferno as a standalone application",
"value": "SAMPLE_CONFIDENTIAL_CLIENT_ID"
},
{
"name": "standalone_client_secret",
"type": "text",
"title": "Standalone Client Secret",
"description": "Client Secret provided during registration of Inferno as a standalone application",
"value": "SAMPLE_CONFIDENTIAL_CLIENT_SECRET"
},
{
"name": "ehr_client_id",
"type": "text",
"value": "SAMPLE_CONFIDENTIAL_CLIENT_ID"
},
{
"name": "ehr_client_secret",
"type": "text",
"optional": false,
"value": "SAMPLE_CONFIDENTIAL_CLIENT_SECRET"
},
{
"name": "client_auth_type",
"type": "text",
"value": "confidential_symmetric"
"name": "smart_auth_info",
"type": "auth_info",
"value": {
"auth_type": "public",
"use_discovery": "true",
"client_id": "SAMPLE_PUBLIC_CLIENT_ID"
}
},
{
"name": "patient_ids",
Expand All @@ -61,6 +33,24 @@
"description": "Enter the code for an Implantable Device type, or multiple codes separated by commas. If blank, Inferno will validate all Device resources against the Implantable Device profile",
"optional": true,
"value": null
},
{
"name": "granular_scopes_1_auth_info",
"type": "auth_info",
"value": {
"auth_type": "public",
"use_discovery": "true",
"client_id": "SAMPLE_PUBLIC_CLIENT_ID"
}
},
{
"name": "granular_scopes_2_auth_info",
"type": "auth_info",
"value": {
"auth_type": "public",
"use_discovery": "true",
"client_id": "SAMPLE_PUBLIC_CLIENT_ID"
}
}
]
}
60 changes: 25 additions & 35 deletions config/presets/inferno_reference_server_700_preset.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,13 @@
"value": "https://inferno.healthit.gov/reference-server/r4"
},
{
"name": "smart_credentials",
"type": "oauth_credentials",
"title": "OAuth Credentials",
"optional": true,
"value": "{\"access_token\":\"SAMPLE_TOKEN\"}"
},
{
"name": "standalone_client_id",
"type": "text",
"title": "Standalone Client ID",
"description": "Client ID provided during registration of Inferno as a standalone application",
"value": "SAMPLE_CONFIDENTIAL_CLIENT_ID"
},
{
"name": "standalone_client_secret",
"type": "text",
"title": "Standalone Client Secret",
"description": "Client Secret provided during registration of Inferno as a standalone application",
"value": "SAMPLE_CONFIDENTIAL_CLIENT_SECRET"
},
{
"name": "ehr_client_id",
"type": "text",
"value": "SAMPLE_CONFIDENTIAL_CLIENT_ID"
},
{
"name": "ehr_client_secret",
"type": "text",
"optional": false,
"value": "SAMPLE_CONFIDENTIAL_CLIENT_SECRET"
},
{
"name": "client_auth_type",
"type": "text",
"value": "confidential_symmetric"
"name": "smart_auth_info",
"type": "auth_info",
"value": {
"auth_type": "public",
"use_discovery": "true",
"client_id": "SAMPLE_PUBLIC_CLIENT_ID"
}
},
{
"name": "patient_ids",
Expand All @@ -61,6 +33,24 @@
"description": "Enter the code for an Implantable Device type, or multiple codes separated by commas. If blank, Inferno will validate all Device resources against the Implantable Device profile",
"optional": true,
"value": null
},
{
"name": "granular_scopes_1_auth_info",
"type": "auth_info",
"value": {
"auth_type": "public",
"use_discovery": "true",
"client_id": "SAMPLE_PUBLIC_CLIENT_ID"
}
},
{
"name": "granular_scopes_2_auth_info",
"type": "auth_info",
"value": {
"auth_type": "public",
"use_discovery": "true",
"client_id": "SAMPLE_PUBLIC_CLIENT_ID"
}
}
]
}
Loading