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 3093: Transition to use auth info (WIP) #84

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
JS_HOST=""
JS_HOST=""
7 changes: 4 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PATH
remote: .
specs:
smart_app_launch_test_kit (0.4.6)
inferno_core (>= 0.4.2)
smart_app_launch_test_kit (0.5.0.dev)
inferno_core (>= 0.5.4)
json-jwt (~> 1.15.3)
jwt (~> 2.6)
tls_test_kit (~> 0.2.0)
Expand Down Expand Up @@ -138,7 +138,7 @@ GEM
httpclient (2.8.3)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
inferno_core (0.4.43)
inferno_core (0.5.4)
activesupport (~> 6.1.7.5)
base62-rb (= 0.3.1)
blueprinter (= 0.25.2)
Expand All @@ -155,6 +155,7 @@ GEM
hanami-controller (= 2.0.0)
hanami-router (= 2.0.0)
oj (= 3.11.0)
pastel (~> 0.8.0)
pry
pry-byebug
puma (~> 5.6.7)
Expand Down
93 changes: 6 additions & 87 deletions config/presets/inferno_reference_server_preset.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,95 +9,14 @@
"value": "https://inferno.healthit.gov/reference-server/r4"
},
{
"name": "standalone_client_id",
"type": "text",
"value": "SAMPLE_PUBLIC_CLIENT_ID"
},
{
"name": "standalone_requested_scopes",
"type": "text",
"value": "launch/patient openid fhirUser offline_access patient/*.read"
},
{
"name": "use_pkce",
"type": "radio",
"title": "Proof Key for Code Exchange (PKCE)",
"options": {
"list_options": [
{
"label": "Enabled",
"value": "true"
},
{
"label": "Disabled",
"value": "false"
}
]
},
"value": "false"
},
{
"name": "pkce_code_challenge_method",
"type": "radio",
"optional": true,
"title": "PKCE Code Challenge Method",
"options": {
"list_options": [
{
"label": "S256",
"value": "S256"
},
{
"label": "plain",
"value": "plain"
}
]
},
"value": "S256"
},
{
"name": "client_auth_type",
"value": "public",
"_title": "Client Authentication Method",
"_type": "radio",
"_options": {
"list_options": [
{
"label": "Public",
"value": "public"
},
{
"label": "Confidential Symmetric",
"value": "confidential_symmetric"
},
{
"label": "Confidential Asymmetric",
"value": "confidential_asymmetric"
}
]
}
"name": "standalone_smart_auth_info",
"type": "auth_info",
"value": "{\"auth_type\":\"public\",\"use_discovery\":\"true\",\"requested_scopes\":\"launch/patient openid fhirUser offline_access patient/*.read\",\"client_id\":\"SAMPLE_PUBLIC_CLIENT_ID\",\"pkce_support\":\"disabled\",\"auth_request_method\":\"GET\"}"
},
{
"name": "standalone_client_secret",
"type": "text",
"optional": true,
"value": null
},
{
"name": "ehr_client_id",
"type": "text",
"value": "SAMPLE_PUBLIC_CLIENT_ID"
},
{
"name": "ehr_requested_scopes",
"type": "text",
"value": "launch openid fhirUser offline_access user/*.read"
},
{
"name": "ehr_client_secret",
"type": "text",
"optional": true,
"value": null
"name": "ehr_smart_auth_info",
"type": "auth_info",
"value": "{\"auth_type\":\"public\",\"use_discovery\":\"true\",\"requested_scopes\":\"launch openid fhirUser offline_access user/*.read\",\"client_id\":\"SAMPLE_PUBLIC_CLIENT_ID\",\"pkce_support\":\"disabled\",\"auth_request_method\":\"GET\"}"
}
]
}
80 changes: 9 additions & 71 deletions config/presets/inferno_reference_server_stu2_2_preset.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,81 +9,19 @@
"value": "https://inferno.healthit.gov/reference-server/r4"
},
{
"name": "standalone_client_id",
"type": "text",
"value": "SAMPLE_PUBLIC_CLIENT_ID"
},
{
"name": "standalone_requested_scopes",
"type": "text",
"value": "launch/patient openid fhirUser offline_access patient/*.read"
},
{
"name": "standalone_client_secret",
"type": "text",
"optional": true,
"value": null
"name": "standalone_smart_auth_info",
"type": "auth_info",
"value": "{\"auth_type\":\"public\",\"use_discovery\":\"true\",\"requested_scopes\":\"launch/patient openid fhirUser offline_access patient/*.rs\",\"client_id\":\"SAMPLE_PUBLIC_CLIENT_ID\",\"pkce_support\":\"enabled\",\"pkce_code_challenge_method\":\"S256\",\"auth_request_method\":\"GET\"}"
},
{
"name": "ehr_client_id",
"type": "text",
"value": "SAMPLE_PUBLIC_CLIENT_ID"
"name": "ehr_smart_auth_info",
"type": "auth_info",
"value": "{\"auth_type\":\"public\",\"use_discovery\":\"true\",\"requested_scopes\":\"launch openid fhirUser offline_access user/*.rs\",\"client_id\":\"SAMPLE_PUBLIC_CLIENT_ID\",\"pkce_support\":\"enabled\",\"pkce_code_challenge_method\":\"S256\",\"auth_request_method\":\"GET\"}"
},
{
"name": "ehr_requested_scopes",
"type": "text",
"value": "launch openid fhirUser offline_access user/*.read"
},
{
"name": "ehr_client_secret",
"type": "text",
"optional": true,
"value": null
},
{
"name": "client_auth_encryption_method",
"value": "ES384",
"_title": "Encryption Method (Confidential Asymmetric Client Auth Only)",
"_type": "radio",
"_options": {
"list_options": [
{
"label": "ES384",
"value": "ES384"
},
{
"label": "RS384",
"value": "RS384"
}
]
}
},
{
"name": "client_auth_type",
"value": "public",
"_title": "Client Authentication Method",
"_type": "radio",
"_options": {
"list_options": [
{
"label": "Public",
"value": "public"
},
{
"label": "Confidential Symmetric",
"value": "confidential_symmetric"
},
{
"label": "Confidential Asymmetric",
"value": "confidential_asymmetric"
}
]
}
},
{
"name": "backend_services_client_id",
"type": "text",
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6InJlZ2lzdHJhdGlvbi10b2tlbiJ9.eyJqd2tzX3VybCI6Imh0dHA6Ly8xMC4xNS4yNTIuNzMvaW5mZXJuby8ud2VsbC1rbm93bi9qd2tzLmpzb24iLCJhY2Nlc3NUb2tlbnNFeHBpcmVJbiI6MTUsImlhdCI6MTU5NzQxMzE5NX0.q4v4Msc74kN506KTZ0q_minyapJw0gwlT6M_uiL73S4"
"name": "backend_services_smart_auth_info",
"type": "auth_info",
"value": "{\"auth_type\":\"backend_services\",\"use_discovery\":\"true\",\"requested_scopes\":\"system/*.read\",\"client_id\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6InJlZ2lzdHJhdGlvbi10b2tlbiJ9.eyJqd2tzX3VybCI6Imh0dHA6Ly8xMC4xNS4yNTIuNzMvaW5mZXJuby8ud2VsbC1rbm93bi9qd2tzLmpzb24iLCJhY2Nlc3NUb2tlbnNFeHBpcmVJbiI6MTUsImlhdCI6MTU5NzQxMzE5NX0.q4v4Msc74kN506KTZ0q_minyapJw0gwlT6M_uiL73S4\",\"encryption_algorithm\":\"ES384\"}"
}
]
}
80 changes: 9 additions & 71 deletions config/presets/inferno_reference_server_stu2_preset.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,81 +9,19 @@
"value": "https://inferno.healthit.gov/reference-server/r4"
},
{
"name": "standalone_client_id",
"type": "text",
"value": "SAMPLE_PUBLIC_CLIENT_ID"
},
{
"name": "standalone_requested_scopes",
"type": "text",
"value": "launch/patient openid fhirUser offline_access patient/*.read"
},
{
"name": "standalone_client_secret",
"type": "text",
"optional": true,
"value": null
"name": "standalone_smart_auth_info",
"type": "auth_info",
"value": "{\"auth_type\":\"public\",\"use_discovery\":\"true\",\"requested_scopes\":\"launch/patient openid fhirUser offline_access patient/*.rs\",\"client_id\":\"SAMPLE_PUBLIC_CLIENT_ID\",\"pkce_support\":\"enabled\",\"pkce_code_challenge_method\":\"S256\",\"auth_request_method\":\"GET\"}"
},
{
"name": "ehr_client_id",
"type": "text",
"value": "SAMPLE_PUBLIC_CLIENT_ID"
"name": "ehr_smart_auth_info",
"type": "auth_info",
"value": "{\"auth_type\":\"public\",\"use_discovery\":\"true\",\"requested_scopes\":\"launch openid fhirUser offline_access user/*.rs\",\"client_id\":\"SAMPLE_PUBLIC_CLIENT_ID\",\"pkce_support\":\"enabled\",\"pkce_code_challenge_method\":\"S256\",\"auth_request_method\":\"GET\"}"
},
{
"name": "ehr_requested_scopes",
"type": "text",
"value": "launch openid fhirUser offline_access user/*.read"
},
{
"name": "ehr_client_secret",
"type": "text",
"optional": true,
"value": null
},
{
"name": "client_auth_encryption_method",
"value": "ES384",
"_title": "Encryption Method (Confidential Asymmetric Client Auth Only)",
"_type": "radio",
"_options": {
"list_options": [
{
"label": "ES384",
"value": "ES384"
},
{
"label": "RS384",
"value": "RS384"
}
]
}
},
{
"name": "client_auth_type",
"value": "public",
"_title": "Client Authentication Method",
"_type": "radio",
"_options": {
"list_options": [
{
"label": "Public",
"value": "public"
},
{
"label": "Confidential Symmetric",
"value": "confidential_symmetric"
},
{
"label": "Confidential Asymmetric",
"value": "confidential_asymmetric"
}
]
}
},
{
"name": "backend_services_client_id",
"type": "text",
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6InJlZ2lzdHJhdGlvbi10b2tlbiJ9.eyJqd2tzX3VybCI6Imh0dHA6Ly8xMC4xNS4yNTIuNzMvaW5mZXJuby8ud2VsbC1rbm93bi9qd2tzLmpzb24iLCJhY2Nlc3NUb2tlbnNFeHBpcmVJbiI6MTUsImlhdCI6MTU5NzQxMzE5NX0.q4v4Msc74kN506KTZ0q_minyapJw0gwlT6M_uiL73S4"
"name": "backend_services_smart_auth_info",
"type": "auth_info",
"value": "{\"auth_type\":\"backend_services\",\"use_discovery\":\"true\",\"requested_scopes\":\"system/*.read\",\"client_id\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6InJlZ2lzdHJhdGlvbi10b2tlbiJ9.eyJqd2tzX3VybCI6Imh0dHA6Ly8xMC4xNS4yNTIuNzMvaW5mZXJuby8ud2VsbC1rbm93bi9qd2tzLmpzb24iLCJhY2Nlc3NUb2tlbnNFeHBpcmVJbiI6MTUsImlhdCI6MTU5NzQxMzE5NX0.q4v4Msc74kN506KTZ0q_minyapJw0gwlT6M_uiL73S4\",\"encryption_algorithm\":\"ES384\"}"
}
]
}
Loading
Loading