Skip to content

Commit f99f5dd

Browse files
Copilotwadepickett
andcommitted
Update placement of API endpoint authentication include based on feedback
Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com>
1 parent 941bbdf commit f99f5dd

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

aspnetcore/fundamentals/minimal-apis/responses.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ uid: fundamentals/minimal-apis/responses
1212

1313
[!INCLUDE[](~/includes/not-latest-version.md)]
1414

15+
This article explains how to create responses for minimal API endpoints in ASP.NET Core. Minimal APIs provide several ways to return data and HTTP status codes.
16+
1517
[!INCLUDE[](~/includes/api-endpoint-auth.md)]
1618

1719
:::moniker range=">= aspnetcore-10.0"

aspnetcore/signalr/authn-and-authz.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ uid: signalr/authn-and-authz
1313

1414
:::moniker range=">= aspnetcore-6.0"
1515

16-
[!INCLUDE[](~/includes/api-endpoint-auth.md)]
17-
1816
## Authenticate users connecting to a SignalR hub
1917

18+
[!INCLUDE[](~/includes/api-endpoint-auth.md)]
19+
2020
SignalR can be used with [ASP.NET Core authentication](xref:security/authentication/identity) to associate a user with each connection. In a hub, authentication data can be accessed from the <xref:Microsoft.AspNetCore.SignalR.HubConnectionContext.User?displayProperty=nameWithType> property. Authentication allows the hub to call methods on all connections associated with a user. For more information, see [Manage users and groups in SignalR](xref:signalr/groups). Multiple connections may be associated with a single user.
2121

2222
The following code is an example that uses SignalR and ASP.NET Core authentication:

0 commit comments

Comments
 (0)