Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
feat: update smart dependency (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmayda authored Jun 25, 2021
1 parent 61393be commit 76e6382
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"dependencies": {
"aws-sdk": "^2.785.0",
"axios": "^0.21.1",
"fhir-works-on-aws-authz-smart": "1.0.0",
"fhir-works-on-aws-authz-smart": "2.0.0",
"fhir-works-on-aws-interface": "9.0.0",
"fhir-works-on-aws-persistence-ddb": "3.5.0",
"fhir-works-on-aws-routing": "5.4.1",
Expand Down
9 changes: 7 additions & 2 deletions src/authZConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ export const scopeRule: ScopeRule = {
read: ['read', 'vread', 'search-type', 'search-system', 'history-instance', 'history-type', 'history-system'],
write: ['update', 'patch', 'create', 'transaction'],
},
system: {
// We are not enabling the system scope by default
read: [],
write: [],
},
};

export function createAuthZConfig(
Expand All @@ -28,8 +33,8 @@ export function createAuthZConfig(
scopeRule,
expectedAudValue,
expectedIssValue,
fhirUserClaimKey: 'fhirUser',
launchContextKeyPrefix: 'launch_response_',
fhirUserClaimPath: 'fhirUser',
launchContextPathPrefix: 'launch_response_',
jwksEndpoint,
};
}
16 changes: 6 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5778,15 +5778,16 @@ fecha@^4.2.0:
resolved "https://registry.yarnpkg.com/fecha/-/fecha-4.2.0.tgz#3ffb6395453e3f3efff850404f0a59b6747f5f41"
integrity sha512-aN3pcx/DSmtyoovUudctc8+6Hl4T+hI9GBBHLjA76jdZl7+b1sgh5g4k+u/GL3dTy1/pnYzKp69FpJ0OicE3Wg==

fhir-works-on-aws-authz-smart@1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/fhir-works-on-aws-authz-smart/-/fhir-works-on-aws-authz-smart-1.0.0.tgz#3295c5bc837047bf390cb03828d0b4e901380d54"
integrity sha512-j2Qga2aQoN8JqgcQIXf2qWugQ592uNuN9QGbH1AsJ6Qy7TjtzpiOn+9QYpx6Hg5mxJK6YoPAXTWxkuSgTiX6HA==
fhir-works-on-aws-authz-smart@2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/fhir-works-on-aws-authz-smart/-/fhir-works-on-aws-authz-smart-2.0.0.tgz#e8d668e7536513c3f337577a4b4e63de30bd074a"
integrity sha512-cJ0qVMw2NjCD7SVzHk2EBx+nDKMq/79fYbwOVhsq1H5nNmfm+A932hVL/agmZn//0NE+2GeqktIcxQ9cWIQ5Jg==
dependencies:
axios "^0.21.1"
fhir-works-on-aws-interface "^7.0.1"
fhir-works-on-aws-interface "^9.0.0"
jsonwebtoken "^8.5.1"
jwks-rsa "^1.12.1"
lodash "^4.17.21"

[email protected], fhir-works-on-aws-interface@^9.0.0:
version "9.0.0"
Expand All @@ -5796,11 +5797,6 @@ [email protected], fhir-works-on-aws-interface@^9.0.0:
winston "^3.3.3"
winston-transport "^4.4.0"

fhir-works-on-aws-interface@^7.0.1:
version "7.1.0"
resolved "https://registry.yarnpkg.com/fhir-works-on-aws-interface/-/fhir-works-on-aws-interface-7.1.0.tgz#74ec69861b9909b9d14925085a901162def8ad6c"
integrity sha512-0Tz0ZXycp3vnKSyjnPO94rKJ7Qtz4JWLy83HpB1+qdGaAxzGaMVyW7w3vC3fkPmqOIPKxVl96pU/tXS7/Q9J8g==

[email protected]:
version "3.5.0"
resolved "https://registry.yarnpkg.com/fhir-works-on-aws-persistence-ddb/-/fhir-works-on-aws-persistence-ddb-3.5.0.tgz#d80837a1f6484f42b547fc880f7807c5c92ae205"
Expand Down

0 comments on commit 76e6382

Please sign in to comment.