Skip to content

Commit bc80718

Browse files
authored
Clarify use of IHttpContextAccessor/HttpContext (dotnet#32260)
1 parent e2bfa49 commit bc80718

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

aspnetcore/blazor/security/blazor-web-app-with-oidc.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ The `BlazorWebAppOidc` project is the server-side project of the Blazor Web App.
4848

4949
The `BlazorWebAppOidc.http` file can be used for testing the weather data request. Note that the `BlazorWebAppOidc` project must be running to test the endpoint, and the endpoint is hardcoded into the file. For more information, see <xref:test/http-files>.
5050

51+
> [!NOTE]
52+
> The server project uses <xref:Microsoft.AspNetCore.Http.IHttpContextAccessor>/<xref:Microsoft.AspNetCore.Http.HttpContext>, but never for interactively-rendered components. For more information, see <xref:blazor/security/server/interactive-server-side-rendering#ihttpcontextaccessorhttpcontext-in-razor-components>.
53+
5154
### Configuration
5255

5356
This section explains how to configure the sample app.
@@ -281,6 +284,9 @@ The `BlazorWebAppOidc` project is the server-side project of the Blazor Web App.
281284

282285
The `BlazorWebAppOidc.http` file can be used for testing the weather data request. Note that the `BlazorWebAppOidc` project must be running to test the endpoint, and the endpoint is hardcoded into the file. For more information, see <xref:test/http-files>.
283286

287+
> [!NOTE]
288+
> The server project uses <xref:Microsoft.AspNetCore.Http.IHttpContextAccessor>/<xref:Microsoft.AspNetCore.Http.HttpContext>, but never for interactively-rendered components. For more information, see <xref:blazor/security/server/interactive-server-side-rendering#ihttpcontextaccessorhttpcontext-in-razor-components>.
289+
284290
### Configuration
285291

286292
This section explains how to configure the sample app.

0 commit comments

Comments
 (0)