Skip to content

Commit f1872d3

Browse files
authored
Update signalr-concept-authenticate-oauth.md
1 parent 1de9f4a commit f1872d3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

articles/azure-signalr/signalr-concept-authenticate-oauth.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to implement your own authentication and integrate it wit
44
author: vicancy
55
ms.service: signalr
66
ms.topic: conceptual
7-
ms.date: 11/13/2023
7+
ms.date: 02/18/2024
88
ms.author: lianwei
99
ms.devlang: csharp
1010
ms.custom: devx-track-csharp, devx-track-azurecli
@@ -205,10 +205,9 @@ In this section, you implement a `Login` API that authenticates clients using th
205205

206206
### Update the Hub class
207207

208-
By default, web client connects to SignalR Service using an internal access. This access token isn't associated with an authenticated identity.
209-
Basically, it's anonymous access.
208+
By default, web client connects to SignalR Service using an access token generated by the Azure SignalR SDK automatically.
210209

211-
In this section, you turn on real authentication by adding the `Authorize` attribute to the hub class, and updating the hub methods to read the username from the authenticated user's claim.
210+
In this section, you integrate the real authentication workflow by adding the `Authorize` attribute to the hub class, and update the hub methods to read the username from the authenticated user's claim.
212211

213212
1. Open _Hub\ChatSampleHub.cs_ and update the code to the below code snippet. The code adds the `Authorize` attribute to the `ChatSampleHub` class, and uses the user's authenticated identity in the hub methods. Also, the `OnConnectedAsync` method is added, which logs a system message to the chat room each time a new client connects.
214213

0 commit comments

Comments
 (0)