Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 2.79 KB

File metadata and controls

51 lines (33 loc) · 2.79 KB
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

Authorize requests to Azure Web PubSub resources with Microsoft Entra applications

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.

Register an application in Microsoft Entra ID

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.

Screenshot of overview information for a registered application.

Add credentials

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.

Add role assignments in the Azure portal

[!INCLUDE add role assignments]

Code samples with Microsoft Entra authorization

Check out our samples that show how to use Microsoft Entra authorization in programming languages we officially support.

Related content