You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: articles/azure-web-pubsub/howto-disable-local-auth.md
+13-7Lines changed: 13 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,26 +4,32 @@ description: This article provides information about how to disable access key a
4
4
author: terencefan
5
5
6
6
ms.author: tefa
7
-
ms.date: 03/31/2023
7
+
ms.date: 08/09/2024
8
8
ms.service: azure-web-pubsub
9
9
ms.custom: devx-track-arm-template
10
10
ms.topic: conceptual
11
11
---
12
12
13
13
# Disable local (access key) authentication with Azure Web PubSub Service
14
14
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.
16
22
17
23
> [!IMPORTANT]
18
-
> Disabling local authentication can have following influences.
24
+
> Disabling local authentication has the following effects:
19
25
>
20
-
> -The current set of access keys will be permanently deleted.
26
+
> -Access keys' current set is permanently deleted.
21
27
> - 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.
23
29
24
30
## Use Azure portal
25
31
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.
27
33
28
34
1. Navigate to your Web PubSub Service resource in the [Azure portal](https://portal.azure.com).
29
35
@@ -89,7 +95,7 @@ You can disable local authentication by setting `disableLocalAuth` property to t
89
95
90
96
## Use Azure Policy
91
97
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.
93
99
94
100

0 commit comments