Skip to content

Commit 04bffa5

Browse files
authored
Merge branch 'main' into guardrex/blazor-standalone-with-identity-acct-conf-pw-recovery
2 parents 1f9b9fe + df728b4 commit 04bffa5

File tree

24 files changed

+176
-50
lines changed

24 files changed

+176
-50
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Blank issue
3+
about: Create an issue to help us improve
4+
---
5+
6+
# Before you open an issue
7+
8+
If the issue is with an ASP.NET Core document:
9+
10+
* Do **not** open a new issue using this form.
11+
* Open the issue using the **Open a documentation issue** link and feedback form at the bottom of the article.
12+
13+
Using the **Open a documentation issue** link and form to open an issue adds article metadata for tracking, which indicates the article that you're commenting on and pings the author for a faster response.
14+
15+
If the issue is:
16+
17+
* A simple typo or similar correction, you can submit a PR. See the Contributor Guide for instructions: https://docs.microsoft.com/contribute/#quick-edits-to-existing-documents
18+
* A general support question, consider asking on a support forum:
19+
* Stack Overflow: https://stackoverflow.com/questions/tagged/asp.net-core
20+
* ASP.NET Core Slack: https://aspnetcore.slack.com/join/shared_invite/zt-1mv5487zb-EOZxJ1iqb0A0ajowEbxByQ#/shared-invite/email
21+
* ASP.NET Gitter: https://gitter.im/aspnet/Home
22+
* A site design concern, create an issue at MicrosoftDocs/Feedback: https://github.com/MicrosoftDocs/Feedback/issues/new/choose
23+
* A problem completing a tutorial, compare your code with the completed sample.
24+
* A duplicate of an open or closed issue, leave a comment on that issue.

.github/ISSUE_TEMPLATE/doc-issue.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ Using the **Open a documentation issue** link and form to open an issue adds art
1414

1515
If the issue is:
1616

17-
* A simple typo or similar correction, you can submit a PR. See [the contributor guide](https://docs.microsoft.com/contribute/#quick-edits-to-existing-documents) for instructions.
18-
* A general support question, consider asking on a support forum site.
19-
* A site design concern, create an issue at [MicrosoftDocs/Feedback](https://github.com/MicrosoftDocs/Feedback/issues/new/choose).
17+
* A simple typo or similar correction, you can submit a PR. See the Contributor Guide for instructions: https://docs.microsoft.com/contribute/#quick-edits-to-existing-documents
18+
* A general support question, consider asking on a support forum:
19+
* Stack Overflow: https://stackoverflow.com/questions/tagged/asp.net-core
20+
* ASP.NET Core Slack: https://aspnetcore.slack.com/join/shared_invite/zt-1mv5487zb-EOZxJ1iqb0A0ajowEbxByQ#/shared-invite/email
21+
* ASP.NET Gitter: https://gitter.im/aspnet/Home
22+
* A site design concern, create an issue at MicrosoftDocs/Feedback: https://github.com/MicrosoftDocs/Feedback/issues/new/choose
2023
* A problem completing a tutorial, compare your code with the completed sample.
2124
* A duplicate of an open or closed issue, leave a comment on that issue.
2225

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,23 @@ This repository contains the [ASP.NET Core documentation](https://learn.microsof
55
To provide comments and suggestions on [learn.microsoft.com](https://learn.microsoft.com) site functionality, open an issue in the [`MicrosoftDocs/feedback` GitHub repository](https://github.com/MicrosoftDocs/feedback).
66

77
ASP.NET 4.x documentation changes are made in the [`dotnet/AspNetDocs` GitHub repository](https://github.com/dotnet/AspNetDocs).
8+
9+
## How to open an issue
10+
11+
If the issue is with an ASP.NET Core document:
12+
13+
* Do **not** open a blank issue.
14+
* Open the issue using the **Open a documentation issue** link and feedback form at the bottom of the article.
15+
16+
Using the **Open a documentation issue** link and form to open an issue adds article metadata for tracking, which indicates the article that you're commenting on and automatically pings the author for a faster response.
17+
18+
If the issue is:
19+
20+
* A simple typo or similar correction, you can submit a PR. See [the contributor guide](https://docs.microsoft.com/contribute/#quick-edits-to-existing-documents) for instructions.
21+
* A general support question, consider asking on a support forum site:
22+
* [Stack Overflow](https://stackoverflow.com/questions/tagged/asp.net-core)
23+
* [ASP.NET Core Slack](https://aspnetcore.slack.com/join/shared_invite/zt-1mv5487zb-EOZxJ1iqb0A0ajowEbxByQ#/shared-invite/email)
24+
* [ASP.NET Gitter](https://gitter.im/aspnet/Home)
25+
* A site design concern, create an issue at [MicrosoftDocs/Feedback](https://github.com/MicrosoftDocs/Feedback/issues/new/choose).
26+
* A problem completing a tutorial, compare your code with the completed sample.
27+
* A duplicate of an open or closed issue, leave a comment on that issue.

aspnetcore/blazor/components/quickgrid.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ The <xref:Microsoft.AspNetCore.Components.QuickGrid.GridItemsProvider%601> conve
313313
```razor
314314
@page "/food-recalls"
315315
@inject HttpClient Http
316-
@inject NavigationManager NavManager
316+
@inject NavigationManager Navigation
317317
318318
<PageTitle>Food Recalls</PageTitle>
319319
@@ -332,14 +332,14 @@ The <xref:Microsoft.AspNetCore.Components.QuickGrid.GridItemsProvider%601> conve
332332
<p>Total: <strong>@numResults results found</strong></p>
333333
334334
@code {
335-
GridItemsProvider<FoodRecall>? foodRecallProvider;
336-
int numResults;
335+
private GridItemsProvider<FoodRecall>? foodRecallProvider;
336+
private int numResults;
337337
338338
protected override async Task OnInitializedAsync()
339339
{
340340
foodRecallProvider = async req =>
341341
{
342-
var url = NavManager.GetUriWithQueryParameters(
342+
var url = Navigation.GetUriWithQueryParameters(
343343
"https://api.fda.gov/food/enforcement.json",
344344
new Dictionary<string, object?>
345345
{

aspnetcore/blazor/components/render-modes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ The `Shared` folder maintains the `AccountLayout` layout component. The componen
688688
```razor
689689
@inherits LayoutComponentBase
690690
@layout BlazorSample.Components.Layout.MainLayout
691-
@inject NavigationManager NavigationManager
691+
@inject NavigationManager Navigation
692692
693693
@if (HttpContext is null)
694694
{
@@ -707,7 +707,7 @@ else
707707
{
708708
if (HttpContext is null)
709709
{
710-
NavigationManager.Refresh(forceReload: true);
710+
Navigation.Refresh(forceReload: true);
711711
}
712712
}
713713
}
@@ -756,7 +756,7 @@ The app has a custom layout that can be applied to components around the app. Us
756756
```razor
757757
@inherits LayoutComponentBase
758758
@layout MainLayout
759-
@inject NavigationManager NavigationManager
759+
@inject NavigationManager Navigation
760760
761761
@if (HttpContext is null)
762762
{
@@ -775,7 +775,7 @@ else
775775
{
776776
if (HttpContext is null)
777777
{
778-
NavigationManager.Refresh(forceReload: true);
778+
Navigation.Refresh(forceReload: true);
779779
}
780780
}
781781
}

aspnetcore/blazor/fundamentals/index.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -178,22 +178,6 @@ Documentation sample apps are available for inspection and download:
178178

179179
Locate a sample app by first selecting the version folder that matches the version of .NET that you're working with.
180180

181-
:::moniker range=">= aspnetcore-8.0"
182-
183-
Samples apps in the repository:
184-
185-
* Blazor Web App
186-
* Blazor WebAssembly
187-
* Blazor Web App with EF Core (<xref:blazor/blazor-ef-core>)
188-
* Blazor Web App with SignalR (<xref:blazor/tutorials/signalr-blazor>)
189-
* Two Blazor Web Apps and a Blazor WebAssembly app for calling web (server) APIs (<xref:blazor/call-web-api>)
190-
* Blazor Web App with OIDC (BFF and non-BFF patterns) (<xref:blazor/security/blazor-web-app-oidc>)
191-
* Blazor WebAssembly scopes-enabled logging (<xref:blazor/fundamentals/logging#client-side-log-scopes>)
192-
* Blazor WebAssembly with ASP.NET Core Identity (<xref:blazor/security/webassembly/standalone-with-identity/index>)
193-
* .NET MAUI Blazor Hybrid app with a Blazor Web App and a shared UI provided by a Razor class library (RCL) (<xref:blazor/hybrid/tutorials/maui-blazor-web-app>)
194-
195-
:::moniker-end
196-
197181
:::moniker range="< aspnetcore-8.0"
198182

199183
The sample repo contains two types of samples:
@@ -206,7 +190,7 @@ The sample repo contains two types of samples:
206190

207191
:::moniker-end
208192

209-
For more information, see the [Blazor samples GitHub repository README.md file](https://github.com/dotnet/blazor-samples).
193+
For more information and a list of the samples in the repository, see the [Blazor samples GitHub repository README.md file](https://github.com/dotnet/blazor-samples).
210194

211195
The ASP.NET Core repository's Basic Test App is also a helpful set of samples for various Blazor scenarios:
212196

aspnetcore/blazor/tutorials/build-a-blazor-app.md

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,37 +196,73 @@ Add a `TodoItem.cs` file to the root of the project (the `TodoList` folder) to h
196196

197197
:::moniker range=">= aspnetcore-9.0"
198198

199-
:::code language="csharp" source="~/../blazor-samples/9.0/BlazorSample_WebAssembly/TodoItem.cs":::
199+
```csharp
200+
public class TodoItem
201+
{
202+
public string? Title { get; set; }
203+
public bool IsDone { get; set; }
204+
}
205+
```
200206

201207
:::moniker-end
202208

203209
:::moniker range=">= aspnetcore-8.0 < aspnetcore-9.0"
204210

205-
:::code language="csharp" source="~/../blazor-samples/8.0/BlazorSample_WebAssembly/TodoItem.cs":::
211+
```csharp
212+
public class TodoItem
213+
{
214+
public string? Title { get; set; }
215+
public bool IsDone { get; set; }
216+
}
217+
```
206218

207219
:::moniker-end
208220

209221
:::moniker range=">= aspnetcore-7.0 < aspnetcore-8.0"
210222

211-
:::code language="csharp" source="~/../blazor-samples/7.0/BlazorSample_WebAssembly/build-a-blazor-app/TodoItem.cs":::
223+
```csharp
224+
public class TodoItem
225+
{
226+
public string? Title { get; set; }
227+
public bool IsDone { get; set; }
228+
}
229+
```
212230

213231
:::moniker-end
214232

215233
:::moniker range=">= aspnetcore-6.0 < aspnetcore-7.0"
216234

217-
:::code language="csharp" source="~/../blazor-samples/6.0/BlazorSample_WebAssembly/build-a-blazor-app/TodoItem.cs":::
235+
```csharp
236+
public class TodoItem
237+
{
238+
public string? Title { get; set; }
239+
public bool IsDone { get; set; }
240+
}
241+
```
218242

219243
:::moniker-end
220244

221245
:::moniker range=">= aspnetcore-5.0 < aspnetcore-6.0"
222246

223-
:::code language="csharp" source="~/../blazor-samples/5.0/BlazorSample_WebAssembly/build-a-blazor-app/TodoItem.cs":::
247+
```csharp
248+
public class TodoItem
249+
{
250+
public string Title { get; set; }
251+
public bool IsDone { get; set; }
252+
}
253+
```
224254

225255
:::moniker-end
226256

227257
:::moniker range="< aspnetcore-5.0"
228258

229-
:::code language="csharp" source="~/../blazor-samples/3.1/BlazorSample_WebAssembly/build-a-blazor-app/TodoItem.cs":::
259+
```csharp
260+
public class TodoItem
261+
{
262+
public string Title { get; set; }
263+
public bool IsDone { get; set; }
264+
}
265+
```
230266

231267
:::moniker-end
232268

aspnetcore/fundamentals/configuration/index.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ ms.custom: mvc
88
ms.date: 04/26/2024
99
uid: fundamentals/configuration/index
1010
---
11+
<!-- ms.sfi.ropc: t -->
1112
# Configuration in ASP.NET Core
1213

1314
By [Rick Anderson](https://twitter.com/RickAndMSFT) and [Kirk Larkin](https://twitter.com/serpent5)
@@ -158,15 +159,15 @@ Configuration data guidelines:
158159
* Never store passwords or other sensitive data in configuration provider code or in plain text configuration files. The [Secret Manager](xref:security/app-secrets) tool can be used to store secrets in development.
159160
* Don't use production secrets in development or test environments.
160161
* Specify secrets outside of the project so that they can't be accidentally committed to a source code repository.
162+
* Production apps should use the most secure authentication flow available. For more information, see [Secure authentication flows](xref:security/index#secure-authentication-flows).
161163

162164
By [default](#default), the user secrets configuration source is registered after the JSON configuration sources. Therefore, user secrets keys take precedence over keys in `appsettings.json` and `appsettings.{Environment}.json`.
163165

164166
For more information on storing passwords or other sensitive data:
165167

166168
* <xref:fundamentals/environments>
167169
* <xref:security/app-secrets>: Includes advice on using environment variables to store sensitive data. The Secret Manager tool uses the [File configuration provider](#fcp) to store user secrets in a JSON file on the local system.
168-
169-
[Azure Key Vault](https://azure.microsoft.com/services/key-vault/) safely stores app secrets for ASP.NET Core apps. For more information, see <xref:security/key-vault-configuration>.
170+
* [Azure Key Vault](https://azure.microsoft.com/services/key-vault/) safely stores app secrets for ASP.NET Core apps. For more information, see <xref:security/key-vault-configuration>.
170171

171172
<a name="evcp"></a>
172173

@@ -408,6 +409,8 @@ The preferred way to read hierarchical configuration data is using the options p
408409

409410
## Configuration keys and values
410411

412+
[!INCLUDE [managed-identities](~/includes/managed-identities-conn-strings.md)]
413+
411414
Configuration keys:
412415

413416
* Are case-insensitive. For example, `ConnectionString` and `connectionstring` are treated as equivalent keys.
@@ -459,6 +462,8 @@ The preceding sequence of providers is used in the [default configuration](#defa
459462

460463
### Connection string prefixes
461464

465+
[!INCLUDE [managed-identities](~/includes/managed-identities-conn-strings.md)]
466+
462467
The Configuration API has special processing rules for four connection string environment variables. These connection strings are involved in configuring Azure connection strings for the app environment. Environment variables with the prefixes shown in the table are loaded into the app with the [default configuration](#default) or when no prefix is supplied to `AddEnvironmentVariables`.
463468

464469
| Connection string prefix | Provider |

aspnetcore/fundamentals/configuration/index/includes/index3-5.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:::moniker range=">= aspnetcore-5.0 < aspnetcore-6.0"
2-
2+
<!-- ms.sfi.ropc: t -->
33
<a name="kestrel"></a>
44

55
## Kestrel endpoint configuration
@@ -149,6 +149,8 @@ Custom configuration providers aren't required to implement array binding.
149149

150150
## Custom configuration provider
151151

152+
[!INCLUDE [managed-identities](~/includes/managed-identities-conn-strings.md)]
153+
152154
The sample app demonstrates how to create a basic configuration provider that reads configuration key-value pairs from a database using [Entity Framework (EF)](/ef/core/).
153155

154156
The provider has the following characteristics:

aspnetcore/fundamentals/configuration/index/includes/index6.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:::moniker range="= aspnetcore-6.0"
2-
2+
<!-- ms.sfi.ropc: t -->
33
Application configuration in ASP.NET Core is performed using one or more [configuration providers](#cp). Configuration providers read configuration data from key-value pairs using a variety of configuration sources:
44

55
* Settings files, such as `appsettings.json`
@@ -135,6 +135,7 @@ Configuration data guidelines:
135135
* Never store passwords or other sensitive data in configuration provider code or in plain text configuration files. The [Secret Manager](xref:security/app-secrets) tool can be used to store secrets in development.
136136
* Don't use production secrets in development or test environments.
137137
* Specify secrets outside of the project so that they can't be accidentally committed to a source code repository.
138+
* Production apps should use the most secure authentication flow available. For more information, see [Secure authentication flows](xref:security/index#secure-authentication-flows).
138139

139140
By [default](#default), the user secrets configuration source is registered after the JSON configuration sources. Therefore, user secrets keys take precedence over keys in `appsettings.json` and `appsettings.{Environment}.json`.
140141

@@ -385,6 +386,8 @@ The preferred way to read hierarchical configuration data is using the options p
385386

386387
## Configuration keys and values
387388

389+
[!INCLUDE [managed-identities](~/includes/managed-identities-conn-strings.md)]
390+
388391
Configuration keys:
389392

390393
* Are case-insensitive. For example, `ConnectionString` and `connectionstring` are treated as equivalent keys.
@@ -436,6 +439,8 @@ The preceding sequence of providers is used in the [default configuration](#defa
436439

437440
### Connection string prefixes
438441

442+
[!INCLUDE [managed-identities](~/includes/managed-identities-conn-strings.md)]
443+
439444
The Configuration API has special processing rules for four connection string environment variables. These connection strings are involved in configuring Azure connection strings for the app environment. Environment variables with the prefixes shown in the table are loaded into the app with the [default configuration](#default) or when no prefix is supplied to `AddEnvironmentVariables`.
440445

441446
| Connection string prefix | Provider |

0 commit comments

Comments
 (0)