Client application registration
In the previous tutorial, you deployed and set up your Azure API for FHIR. Now that you have your Azure API for FHIR setup, we will register a public client application. You can read through the full register a public client app how-to guide for more details or troubleshooting, but we have called out the major steps for this tutorial below.
Navigate to Azure Active Directory
Select App Registration --> New Registration
Name your application
Select Public client/native (mobile & desktop) and set the redirect URI to
Client application settings
Once your client application is registered, copy the Application (client) ID and the Tenant ID from the Overview Page. You will need these two values later when accessing the client.
Connect with web app
If you have written your web app to connect with the Azure API for FHIR, you also need to set the correct authentication options.
In the left menu, under Manage, select Authentication.
To add a new platform configuration, select Web.
Set up the redirect URI in preparation for when you create your web application in the fourth part of this tutorial. To do this, add
https://\<WEB-APP-NAME>.azurewebsites.netto the redirect URI list. If you choose a different name during the step where you write your web app, you will need to come back and update this.
Select the Access Token and ID token check boxes.
Add API permissions
Now that you have setup the correct authentication, set the API permissions:
- Select API permissions and click Add a permission.
- Under APIs my organization uses, search for Azure Healthcare APIs.
- Select user_impersonation and click add permissions.
You now have a public client application. In the next tutorial, we will walk through testing and gaining access to this application through Postman.