Skip to content

Commit 4a44a5b

Browse files
Zach Platazplata
Zach Plata
authored andcommitted
Make CDS Service discovery calls for default service provider and store results accordingly
1 parent 1cb76f8 commit 4a44a5b

21 files changed

+4721
-1214
lines changed

build/.well-known/jwks.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"keys": [
3+
{
4+
"kty": "EC",
5+
"use": "enc",
6+
"crv": "P-256",
7+
"kid": "d9cd3c4f-eb08-4304-b973-44f352fd2ca2",
8+
"x": "QWI9fI8TcNtdikhVs_M1N_Szb7BOj19etvIKfrQMa9k",
9+
"y": "jDkhk_Z2RZZ5L5rN4vd1_i-RJLn3EfEhDcy7iFBg--I",
10+
"alg": "ES256"
11+
}
12+
]
13+
}

build/app.bundle.js

+1,234-589
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/bundle.js

+2,368-121
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/smart-launch.bundle.js

+565-459
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ecprivkey.pem

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-----BEGIN PRIVATE KEY-----
2+
MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQg/DM2VJ/ZJSF6bIZD
3+
6KuqWX1uxn6VGQkIoEJVk7kP4A6hRANCAARBYj18jxNw212KSFWz8zU39LNvsE6P
4+
X1628gp+tAxr2Yw5IZP2dkWWeS+azeL3df4vkSS59xHxIQ3Mu4hQYPvi
5+
-----END PRIVATE KEY-----

jwk-keypair.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"keys": [
3+
{
4+
"kty": "EC",
5+
"d": "_DM2VJ_ZJSF6bIZD6KuqWX1uxn6VGQkIoEJVk7kP4A4",
6+
"use": "enc",
7+
"crv": "P-256",
8+
"kid": "d9cd3c4f-eb08-4304-b973-44f352fd2ca2",
9+
"x": "QWI9fI8TcNtdikhVs_M1N_Szb7BOj19etvIKfrQMa9k",
10+
"y": "jDkhk_Z2RZZ5L5rN4vd1_i-RJLn3EfEhDcy7iFBg--I",
11+
"alg": "ES256"
12+
}
13+
]
14+
}

package-lock.json

+72-41
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
],
2727
"dependencies": {
2828
"axios": "^0.17.1",
29+
"jsrsasign": "^8.0.6",
30+
"lodash": "^4.17.5",
2931
"query-string": "^5.1.0",
3032
"react": "^16.2.0",
3133
"react-dom": "^16.2.0",
@@ -51,8 +53,11 @@
5153
"eslint-plugin-react": "^7.5.1",
5254
"express": "^4.16.2",
5355
"extract-text-webpack-plugin": "^3.0.2",
56+
"file-loader": "^1.1.6",
5457
"identity-obj-proxy": "^3.0.0",
5558
"jest": "^22.1.4",
59+
"raw-loader": "^0.5.1",
60+
"redux-immutable-state-invariant": "^2.1.0",
5661
"redux-logger": "^3.0.6",
5762
"redux-mock-store": "^1.4.0",
5863
"style-loader": "^0.19.1",

src/actions/action-types.js

+5
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ export const SMART_AUTH_FAILURE = 'SMART_AUTH_FAILURE';
2222
// Patient Context
2323
export const GET_PATIENT_SUCCESS = 'GET_PATIENT_SUCCESS';
2424
export const GET_PATIENT_FAILURE = 'GET_PATIENT_FAILURE';
25+
26+
// CDS Service Discovery
27+
export const DISCOVER_CDS_SERVICES = 'DISCOVER_CDS_SERVICES';
28+
export const DISCOVER_CDS_SERVICES_SUCCESS = 'DISCOVER_CDS_SERVICES_SUCCESS';
29+
export const DISCOVER_CDS_SERVICES_FAILURE = 'DISCOVER_CDS_SERVICES_FAILURE';

0 commit comments

Comments
 (0)