Skip to content

Commit 1a5f887

Browse files
committed
Need to explicitly add {/* prettier-ignore */}
1 parent 4560c0b commit 1a5f887

File tree

3 files changed

+43
-37
lines changed

3 files changed

+43
-37
lines changed

src/content/docs/bff/fundamentals/apis/local.mdx

Lines changed: 38 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -98,57 +98,59 @@ Additionally, API endpoints should handle scenarios where the session has expire
9898

9999
Duende.BFF can automate the pre-processing step of requiring the custom anti-forgery header. To do so, first add the BFF middleware to the pipeline, and then decorate your endpoints to indicate that they should receive BFF pre-processing.
100100

101+
{/* prettier-ignore */}
101102
<Steps>
102103

103-
1. **Add Middleware to the pipeline**
104+
1. **Add Middleware to the pipeline**
104105

105-
Add the BFF middleware to the pipeline by calling `UseBff`. Note that the middleware must be placed before the authorization middleware, but after routing.
106+
Add the BFF middleware to the pipeline by calling `UseBff`. Note that the middleware must be placed before the authorization middleware, but after routing.
106107

107-
```csharp {5}
108-
// Program.cs
109-
app.UseAuthentication();
110-
app.UseRouting();
108+
```csharp {5}
109+
// Program.cs
110+
app.UseAuthentication();
111+
app.UseRouting();
111112

112-
app.UseBff();
113+
app.UseBff();
113114

114-
app.UseAuthorization();
115+
app.UseAuthorization();
115116

116-
// map endpoints
117-
```
117+
// map endpoints
118+
```
118119

119-
2. **Decorate Endpoints**
120+
2. **Decorate Endpoints**
120121

121-
Endpoints that require the pre- and post-processing described above must be decorated with a call to `AsBffApiEndpoint()`.
122+
Endpoints that require the pre- and post-processing described above must be decorated with a call to `AsBffApiEndpoint()`.
122123

123-
For Minimal API endpoints, you can apply BFF pre- and post-processing when they are mapped.
124+
For Minimal API endpoints, you can apply BFF pre- and post-processing when they are mapped.
124125

125-
```csharp {4-5}
126-
app.MapPost("/foo", context => {
127-
// ...
128-
})
129-
.RequireAuthorization() // no anonymous access
130-
.AsBffApiEndpoint(); // BFF pre/post processing
131-
```
126+
```csharp {4-5}
127+
app.MapPost("/foo", context => {
128+
// ...
129+
})
130+
.RequireAuthorization() // no anonymous access
131+
.AsBffApiEndpoint(); // BFF pre/post processing
132+
```
132133

133-
For MVC controllers, you can similarly apply BFF pre- and post-processing to controller actions when they are mapped.
134+
For MVC controllers, you can similarly apply BFF pre- and post-processing to controller actions when they are mapped.
134135

135-
```csharp {2-3}
136-
app.MapControllers()
137-
.RequireAuthorization() // no anonymous access
138-
.AsBffApiEndpoint(); // BFF pre/post processing
139-
```
136+
```csharp {2-3}
137+
app.MapControllers()
138+
.RequireAuthorization() // no anonymous access
139+
.AsBffApiEndpoint(); // BFF pre/post processing
140+
```
140141

141-
Alternatively, you can apply the `[BffApi]` attribute directly to the controller or action.
142+
Alternatively, you can apply the `[BffApi]` attribute directly to the controller or action.
142143

143-
```csharp {2}
144-
[Route("myApi")]
145-
[BffApi]
146-
public class MyApiController : ControllerBase
147-
{
148-
// ...
149-
}
150-
```
151-
</Steps>
144+
```csharp {2}
145+
[Route("myApi")]
146+
[BffApi]
147+
public class MyApiController : ControllerBase
148+
{
149+
// ...
150+
}
151+
```
152+
153+
</Steps>
152154

153155
### Disabling Anti-forgery Protection
154156

src/content/docs/bff/upgrading/bff-v2-to-v3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
title: "Duende BFF Security Framework v2.x to v3.0"
33
description: Guide for upgrading Duende BFF Security Framework from version 2.x to version 3.0, including migration steps for custom implementations and breaking changes.
4-
order: 29
54
sidebar:
65
label: v2.x → v3.0
6+
order: 30
77
redirect_from:
88
- /bff/v2/upgrading/bff_v2_to_v3/
99
- /bff/v3/upgrading/bff_v2_to_v3/

src/content/docs/identityserver/upgrades/identityserver4-to-duende-identityserver-v7.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ IdentityServer4 reached its end of life (EOL) on December 13, 2022. It is strong
1515
Depending on your current version of IdentityServer4, different steps may be required.
1616
You can determine the version of IdentityServer4 by running the `dotnet list` command at the root of your IdentityServer host project, or using NuGet tooling in Visual Studio or JetBrains Rider.
1717

18+
{/* prettier-ignore */}
1819
<Tabs>
1920
<TabItem label="Windows">
2021
<Code
@@ -164,6 +165,7 @@ Make sure to verify the database migrations as part of your IdentityServer4 upgr
164165

165166
For the operational data, you can create and apply an Entity Framework Core migration that targets the `PersistedGrantDbContext` database context.
166167

168+
{/* prettier-ignore */}
167169
<Steps>
168170

169171
1. Create the migration:
@@ -183,6 +185,7 @@ For the operational data, you can create and apply an Entity Framework Core migr
183185
For your configuration data, the conversation from the old schema to the new will need to be performed by applying a custom SQL script.
184186
We'll start with creating a migration that targets the `ConfigurationDbContext` database context:
185187

188+
{/* prettier-ignore */}
186189
<Steps>
187190

188191
1. Create the migration:
@@ -416,6 +419,7 @@ In this section, we'll look at updating the database schema based on the stores
416419
You'll need to create two database migrations that update the database schema: one that targets the `PersistedGrantDbContext` (for operational data), and one that targets the `ConfigurationDbContext` (for configuration data).
417420
Note that you may want to change the database migration paths in the examples below to match your project structure.
418421

422+
{/* prettier-ignore */}
419423
<Steps>
420424

421425
1. Create the migrations for the operational and configuration database context:

0 commit comments

Comments
 (0)