You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/blazor/security/blazor-web-app-with-entra.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,8 @@ The sample solution consists of the following projects:
43
43
44
44
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.
45
45
46
+
Start the solution from the ***`Aspire/Aspire.AppHost` project***.
47
+
46
48
[View or download sample code](https://github.com/dotnet/blazor-samples) ([how to download](xref:blazor/fundamentals/index#sample-apps))
Copy file name to clipboardExpand all lines: aspnetcore/blazor/security/blazor-web-app-with-oidc.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,8 @@ The sample app consists of the following projects:
45
45
46
46
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.
47
47
48
+
Start the solution from the ***`Aspire/Aspire.AppHost` project***.
49
+
48
50
[View or download sample code](https://github.com/dotnet/blazor-samples) ([how to download](xref:blazor/fundamentals/index#sample-apps))
Copy file name to clipboardExpand all lines: aspnetcore/blazor/security/includes/troubleshoot-server.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,9 +103,16 @@ A functioning app may fail immediately after upgrading either the .NET Core SDK
103
103
> [!NOTE]
104
104
> 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).
105
105
106
-
### Run the server app
106
+
### Start the solution from the correct project
107
107
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***.
> 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
+
15
18
## 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.
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`:
27
33
28
34
```json
29
35
{
@@ -37,8 +43,10 @@ There are required options for LettuceEncrypt that should be set, see the exampl
37
43
},
38
44
39
45
"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
42
50
"AcceptTermsOfService": true,
43
51
44
52
// 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
56
64
services.AddLettuceEncrypt();
57
65
```
58
66
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).
60
68
61
69
## Kestrel Endpoints
62
70
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`:
0 commit comments