< Previous Challenge - Home - Next Challenge>
In this challenge, you will deploy a sample JavaScript app to connect and read FHIR patient data. You will configure public client application registration to allow JavaScript app to access FHIR Server.
Public Client Application registrations are Azure AD representations of apps that can authenticate and authorize for API permissions on behalf of a user. Public clients are mobile and SPA JavaScript apps that can’t be trusted to hold an application secret, so you don’t need to add one. For a SPA, you can enable implicit flow for app user sign-in with ID tokens and/or call a protected web API with Access tokens.
You will deploy a FHIR sample JavaScript app in Azure to read patient data from the FHIR service.
Check in secondary Azure AD tenant (can be same as your primary AAD tenant if you already have admin privileges) that a Resource Application has been registered for the FHIR Server resource.
Note:
App Registration
, configure a new Web Platform
under Authentication
blade
Redirect URIs
to your [Web App URL]Implicit Grant
by selecting Access token and ID tokensUser_Impersonation
permission (if needed)clientId
- Update with your client application ID of public client app registered earlierauthority
- Update with Authority from your FHIR Server (under Authentication)FHIRendpoint
- Update the FHIRendpoint to have your FHIR service nameScopes
- Update with Audience from your FHIR Server (under Authentication)wwwroot
folder.
index.html
code under the wwwroot
folder.