Skip to content

Commit e31ca41

Browse files
Merge pull request #284141 from Akhilesh-microsoft/AWP/howto_disable_local_auth
[AWP: howto-disable-local-auth]: Verified the article for links and freshness, reviewed the content, verified all the editorial parameters. Article seems good. Updated ms.date
2 parents 1a7eafa + bda472d commit e31ca41

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

articles/azure-web-pubsub/howto-disable-local-auth.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,32 @@ description: This article provides information about how to disable access key a
44
author: terencefan
55

66
ms.author: tefa
7-
ms.date: 03/31/2023
7+
ms.date: 08/09/2024
88
ms.service: azure-web-pubsub
99
ms.custom: devx-track-arm-template
1010
ms.topic: conceptual
1111
---
1212

1313
# Disable local (access key) authentication with Azure Web PubSub Service
1414

15-
There are two ways to authenticate to Azure Web PubSub Service resources: Microsoft Entra ID and Access Key. Microsoft Entra ID provides superior security and ease of use over access key. With Microsoft Entra ID, there’s no need to store the tokens in your code and risk potential security vulnerabilities. We recommend that you use Microsoft Entra ID with your Azure Web PubSub Service resources when possible.
15+
There are two ways to authenticate to Azure Web PubSub Service resources:
16+
17+
1. Microsoft Entra ID
18+
19+
2. Access Keys
20+
21+
**Recommendation:** Microsoft Entra ID provides superior security and ease of use over access keys. With Microsoft Entra ID, there’s no need to store the tokens in your code and risk potential security vulnerabilities. We recommend that you use Microsoft Entra ID with your Azure Web PubSub Service resources when possible.
1622

1723
> [!IMPORTANT]
18-
> Disabling local authentication can have following influences.
24+
> Disabling local authentication has the following effects:
1925
>
20-
> - The current set of access keys will be permanently deleted.
26+
> - Access keys' current set is permanently deleted.
2127
> - Tokens signed with current set of access keys will become unavailable.
22-
> - Signature will **NOT** be attached in the upstream request header. Please visit _[how to validate access token](./howto-use-managed-identity.md#validate-access-tokens)_ to learn how to validate requests via Microsoft Entra token.
28+
> - The signature will **NOT** be attached in the upstream request header. Please visit _[how to validate access token](./howto-use-managed-identity.md#validate-access-tokens)_ to learn how to validate requests via Microsoft Entra token.
2329
2430
## Use Azure portal
2531

26-
In this section, you will learn how to use the Azure portal to disable local authentication.
32+
In this section, you learn how to use the Azure portal to disable local authentication.
2733

2834
1. Navigate to your Web PubSub Service resource in the [Azure portal](https://portal.azure.com).
2935

@@ -89,7 +95,7 @@ You can disable local authentication by setting `disableLocalAuth` property to t
8995

9096
## Use Azure Policy
9197

92-
You can assign the [Azure Web PubSub Service should have local authentication methods disabled](https://ms.portal.azure.com/#view/Microsoft_Azure_Policy/PolicyDetailBlade/definitionId/%2Fproviders%2FMicrosoft.Authorization%2FpolicyDefinitions%2Fb66ab71c-582d-4330-adfd-ac162e78691e) Azure policy to an Azure subscription or a resource group to enforce disabling of local authentication for all Web PubSub resources in the subscription or the resource group.
98+
You can assign the [Azure Web PubSub Service should have local authentication methods disabled](https://ms.portal.azure.com/#view/Microsoft_Azure_Policy/PolicyDetailBlade/definitionId/%2Fproviders%2FMicrosoft.Authorization%2FpolicyDefinitions%2Fb66ab71c-582d-4330-adfd-ac162e78691e) Azure policy to an Azure subscription or a resource group. Doing so enforces disabling of local authentication for all Web PubSub resources in the subscription or the resource group.
9399

94100
![Screenshot of disabling local auth policy.](./media/howto-disable-local-auth/disable-local-auth-policy.png)
95101

0 commit comments

Comments
 (0)