| title | Authorize an application request by using Microsoft Entra ID |
|---|---|
| description | This article provides information about authorizing requests to Azure Web PubSub resources with Microsoft Entra applications. |
| author | terencefan |
| ms.author | lianwei |
| ms.date | 03/11/2025 |
| ms.service | azure-web-pubsub |
| ms.topic | how-to |
Azure Web PubSub Service supports Microsoft Entra ID for authorizing requests with Microsoft Entra applications.
This article explains how to set up your resource and code to authenticate requests to the resource using a Microsoft Entra application.
The first step is to Register an application in Microsoft Entra ID:
After you register your application, you can find the Application (client) ID and Directory (tenant) ID values on the application's overview page. These GUIDs can be useful in the following steps.
After registering an app, you can add certificates, client secrets (a string), or federated identity credentials as credentials to your confidential client app registration. Credentials allow your application to authenticate as itself, requiring no interaction from a user at runtime, and are used by confidential client applications that access a web API.
[!INCLUDE add role assignments]
Check out our samples that show how to use Microsoft Entra authorization in programming languages we officially support.
