Skip to content

Commit 7ea311b

Browse files
Apply suggestions from code review
Co-authored-by: Brennan <[email protected]>
1 parent 95b2159 commit 7ea311b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

aspnetcore/blazor/fundamentals/signalr.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1517,14 +1517,14 @@ Authenticated hub connections (<xref:Microsoft.AspNetCore.SignalR.Client.HubConn
15171517

15181518
When the app is running in IIS Express as the signed-in user under Windows Authentication, which is likely the user's personal or work account, the default credentials are those of the signed-in user.
15191519

1520-
When the app is published to IIS, the app runs under the *Application Pool Identity*. The hub connects as the IIS "user" account hosting the app, not the user accessing the page.
1520+
When the app is published to IIS, the app runs under the *Application Pool Identity*. The <xref:Microsoft.AspNetCore.SignalR.Client.HubConnection> connects as the IIS "user" account hosting the app, not the user accessing the page.
15211521

1522-
Implement *impersonation* with the hub to use the identity of the browsing user.
1522+
Implement *impersonation* with the <xref:Microsoft.AspNetCore.SignalR.Client.HubConnection> to use the identity of the browsing user.
15231523

15241524
In the following example:
15251525

15261526
* The user from the authentication state provider is cast to a <xref:System.Security.Principal.WindowsIdentity>.
1527-
* The identity's access token is passed to <xref:System.Security.Principal.WindowsIdentity.RunImpersonatedAsync%2A?displayProperty=nameWithType> with the code that builds and starts the hub.
1527+
* The identity's access token is passed to <xref:System.Security.Principal.WindowsIdentity.RunImpersonatedAsync%2A?displayProperty=nameWithType> with the code that builds and starts the <xref:Microsoft.AspNetCore.SignalR.Client.HubConnection>.
15281528

15291529
```csharp
15301530
protected override async Task OnInitializedAsync()

0 commit comments

Comments
 (0)