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

feat: Add support for system scope #41

Merged
merged 8 commits into from
Jun 24, 2021
Merged

feat: Add support for system scope #41

merged 8 commits into from
Jun 24, 2021

Conversation

rsmayda
Copy link
Contributor

@rsmayda rsmayda commented Jun 24, 2021

Description of changes:

  • Treat system scopes as user scopes as describe:

System scopes have the format system/(:resourceType|).(read|write|)– which conveys the same access scope as the matching user format user/(:resourceType|).(read|write|) https://hl7.org/fhir/uv/bulkdata/authorization/index.html#scopes

  • Add testing to support new functionality
  • In situations with sub is not provided in the JWT for system requests; an exception will be thrown

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@rsmayda rsmayda self-assigned this Jun 24, 2021
@rsmayda rsmayda requested review from Bingjiling, nguyen102 and carvantes and removed request for Bingjiling June 24, 2021 03:06
src/smartScopeHelper.ts Outdated Show resolved Hide resolved
src/smartScopeHelper.test.ts Outdated Show resolved Hide resolved
src/smartHandler.ts Outdated Show resolved Hide resolved
src/smartHandler.ts Outdated Show resolved Hide resolved
@rsmayda rsmayda requested a review from carvantes June 24, 2021 17:10
@rsmayda rsmayda merged commit 2229ce8 into mainline Jun 24, 2021
@rsmayda rsmayda deleted the system-scope branch June 24, 2021 19:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants