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

feat: use fhirServiceBaseUrl from requests if present #45

Merged
merged 1 commit into from
Jul 15, 2021

Conversation

carvantes
Copy link
Contributor

@carvantes carvantes commented Jul 15, 2021

Description of changes:

Use the fhirServiceBaseUrl from the incoming auth request instead of the static this.apiUrl set in the constructor.

This package uses the apiUrl to perform checks in launch_response/fhirUser claims and when building references to be used in search filters. In a multi-tenant setup the apiUrl can be different for each tenant. This change allows the client (i.e. the router package) to specify the api url to be used in the AuthZ check for a given request.

fhirServiceBaseUrl takes precedence over this.apiUrl as it is more specific(specific to the incoming request). This is a non-breaking change for single tenant setups.

See:

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

Copy link
Contributor

@Bingjiling Bingjiling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@carvantes carvantes merged commit fe05999 into feat-multitenancy Jul 15, 2021
@carvantes carvantes deleted the dev-auth-fhirServiceBaseUrl branch July 15, 2021 22:54
carvantes added a commit that referenced this pull request Aug 17, 2021
* feat: use fhirServiceBaseUrl from requests if present (#45)

* chore: update fhir-works-on-aws-interface version
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.

3 participants