Skip to content

Commit eebd77b

Browse files
committed
add prefix code
1 parent c4602a8 commit eebd77b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

support/entra/entra-id/app-integration/customize-authentication-session-expiration.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ services.Configure<OpenIdConnectOptions>(AzureADDefaults.OpenIdScheme, options =
6767

6868
Here are a few examples of how to do this:
6969

70-
**If you're using code similar to the following to add Microsoft Entra ID authentication**:
70+
If you're using code similar to the following to add Microsoft Entra ID authentication:
7171

72-
```
72+
```csharp
7373
services.AddAuthentication(AzureADDefaults.AuthenticationScheme)
7474
.AddAzureAD(options => Configuration.Bind("AzureAd", options))
7575
```
@@ -93,6 +93,7 @@ services.Configure<OpenIdConnectOptions>(AzureADDefaults.OpenIdScheme, options =
9393
};
9494
});
9595
```
96+
9697
Your configuration in Startup.cs should look something like this:
9798

9899
```csharp
@@ -138,9 +139,9 @@ app.UseCookieAuthentication(new CookieAuthenticationOptions()
138139
});
139140
```
140141

141-
**If you're using `Microsoft.Identity.Web` to add your Microsoft Entra ID configuration:**
142+
If you're using `Microsoft.Identity.Web` to add your Microsoft Entra ID configuration:
142143

143-
```
144+
```csharp
144145
//
145146
using Microsoft.Identity.Web;
146147
//
@@ -171,7 +172,7 @@ public class Startup
171172
}
172173
```
173174

174-
**If you're implementing your own custom `OpenIdConnectOptions` to configure Microsoft Entra ID authentication:**
175+
If you're implementing your own custom `OpenIdConnectOptions` to configure Microsoft Entra ID authentication:
175176

176177
```csharp
177178
services.Configure<OpenIdConnectOptions>(options =>

0 commit comments

Comments
 (0)