Skip to content

Commit d436d0f

Browse files
authored
Merge pull request #35622 from dotnet/main
2 parents d346e50 + 0aed1d4 commit d436d0f

File tree

4 files changed

+31
-12
lines changed

4 files changed

+31
-12
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ The sample solution consists of the following projects:
4343

4444
Access the sample through the latest version folder in the Blazor samples repository with the following link. The sample is in the `BlazorWebAppEntra` folder for .NET 9 or later.
4545

46+
Start the solution from the ***`Aspire/Aspire.AppHost` project***.
47+
4648
[View or download sample code](https://github.com/dotnet/blazor-samples) ([how to download](xref:blazor/fundamentals/index#sample-apps))
4749

4850
## Microsoft Entra ID app registrations

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ The sample app consists of the following projects:
4545

4646
Access the sample through the latest version folder in the Blazor samples repository with the following link. The sample is in the `BlazorWebAppOidc` folder for .NET 8 or later.
4747

48+
Start the solution from the ***`Aspire/Aspire.AppHost` project***.
49+
4850
[View or download sample code](https://github.com/dotnet/blazor-samples) ([how to download](xref:blazor/fundamentals/index#sample-apps))
4951

5052
Sample solution features:

aspnetcore/blazor/security/includes/troubleshoot-server.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,16 @@ A functioning app may fail immediately after upgrading either the .NET Core SDK
103103
> [!NOTE]
104104
> Use of package versions incompatible with the app's target framework isn't supported. For information on a package, use the [NuGet Gallery](https://www.nuget.org).
105105
106-
### Run the server app
106+
### Start the solution from the correct project
107107

108-
When testing and troubleshooting Blazor Web App, make sure that you're running the app from the server project.
108+
Blazor Web Apps:
109+
110+
* For one of the Backend-for-Frontend (BFF) pattern samples, start the solution from the ***`Aspire/Aspire.AppHost` project***.
111+
* For one of the non-BFF pattern samples, start the solution from the ***server project***.
112+
113+
Blazor Server:
114+
115+
Start the solution from the ***server project***.
109116

110117
### Inspect the user
111118

aspnetcore/fundamentals/servers/yarp/lets-encrypt.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,33 @@ uid: fundamentals/servers/yarp/lets-encrypt
33
title: YARP Lets Encrypt
44
description: YARP Lets Encrypt
55
author: samsp-msft
6+
monikerRange: '<= aspnetcore-7.0'
67
ms.author: samsp
7-
ms.date: 2/6/2025
8+
ms.date: 6/13/2025
89
ms.topic: article
910
content_well_notification: AI-contribution
1011
ai-usage: ai-assisted
1112
---
12-
1313
# YARP Lets Encrypt
1414

15+
> [!NOTE]
16+
> The [`LettuceEncrypt` NuGet package](https://github.com/natemcmaster/LettuceEncrypt) described in this article is archived and no longer supported, so the package isn't recommended for use.
17+
1518
## Introduction
16-
YARP can support the certificate authority [Lets Encrypt](https://letsencrypt.org/) by using the API of another ASP.NET Core project [LettuceEncrypt](https://github.com/natemcmaster/LettuceEncrypt). It allows you to set up TLS between the client and YARP with minimal configuration.
19+
20+
YARP can support the certificate authority [Lets Encrypt](https://letsencrypt.org/) by using the API of another ASP.NET Core project, [`LettuceEncrypt`](https://github.com/natemcmaster/LettuceEncrypt). It allows you to set up TLS between the client and YARP with minimal configuration.
1721

1822
## Requirements
1923

20-
Add the LettuceEncrypt package dependency:
24+
Add the `LettuceEncrypt` package dependency:
25+
2126
```csproj
2227
<PackageReference Include="LettuceEncrypt" Version="1.1.2" />
2328
```
2429

2530
## Configuration
26-
There are required options for LettuceEncrypt that should be set, see the example of `appsettings.json`:
31+
32+
There are required options for `LettuceEncrypt` that should be set. See the example of `appsettings.json`:
2733

2834
```json
2935
{
@@ -37,8 +43,10 @@ There are required options for LettuceEncrypt that should be set, see the exampl
3743
},
3844

3945
"LettuceEncrypt": {
40-
// Set this to automatically accept the terms of service of your certificate authority.
41-
// If you don't set this in config, you will need to press "y" whenever the application starts
46+
// Set this to automatically accept the terms of service of your certificate
47+
// authority.
48+
// If you don't set this in config, you will need to press "y" whenever the
49+
// application starts
4250
"AcceptTermsOfService": true,
4351

4452
// You must specify at least one domain name
@@ -56,16 +64,17 @@ There are required options for LettuceEncrypt that should be set, see the exampl
5664
services.AddLettuceEncrypt();
5765
```
5866

59-
For more options (i.e. saving certificates) see examples in [LettuceEncrypt doc](https://github.com/natemcmaster/LettuceEncrypt).
67+
For more options (for example, saving certificates) see the examples in the [`LettuceEncrypt` project README](https://github.com/natemcmaster/LettuceEncrypt).
6068

6169
## Kestrel Endpoints
6270

63-
If your project is explicitly using kestrel options to configure IP addresses, ports, or HTTPS settings, you will also need to call `UseLettuceEncrypt`.
71+
If your project is explicitly using Kestrel options to configure IP addresses, ports, or HTTPS settings, call `UseLettuceEncrypt`:
6472

6573
Example:
6674

6775
```csharp
6876
var builder = WebApplication.CreateBuilder(args);
77+
6978
builder.WebHost.ConfigureKestrel(kestrel =>
7079
{
7180
kestrel.ListenAnyIP(443, portOptions =>
@@ -77,4 +86,3 @@ builder.WebHost.ConfigureKestrel(kestrel =>
7786
});
7887
});
7988
```
80-

0 commit comments

Comments
 (0)