Register a service client application in Azure Active Directory for Azure API for FHIR
Trong bài viết này
In this article, you’ll learn how to register a service client application in Azure Active Directory (Azure AD). Client application registrations are Azure AD representations of applications that can be used to authenticate and obtain tokens. A service client is intended to be used by an application to obtain an access token without interactive authentication of a user. It will have certain application permissions and use an application secret (password) when obtaining access tokens.
Follow these steps to create a new service client.
App registrations in Azure portal
In the Azure portal, navigate to Azure Active Directory.
Select App registrations.
Select New registration.
Give the service client a display name. Service client applications typically don’t use a reply URL.
Permissions for Azure API for FHIR are managed through RBAC. For more details, visit Configure Azure RBAC for FHIR.
Use grant_type of client_credentials when trying to otain an access token for Azure API for FHIR using tools such as Postman. For more details, visit Testing the FHIR API on Azure API for FHIR.
The service client needs a secret (password) to obtain a token.
Select Certificates & secrets.
Select New client secret.
Provide a description and duration of the secret (either one year, two years or never).
Once the secret has been generated, it will only be displayed once in the portal. Make a note of it and store in a secure location.
In this article, you’ve learned how to register a service client application in Azure AD. Next, test access to your FHIR server using Postman.
FHIR® is a registered trademark of HL7 and is used with the permission of HL7.