Skip to content

Commit c4602a8

Browse files
committed
apply editing changes
1 parent dbb05f8 commit c4602a8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This customization can also help resolve AJAX issues (such as CORS errors to `lo
1414

1515
## For ASP.NET
1616

17-
In most cases, In the `ConfigureAuth` method of your `Startup.Auth.cs` file, update the `app.UseCookieAuthentication()` method to:
17+
In the `ConfigureAuth` method of your `Startup.Auth.cs` file, update the `app.UseCookieAuthentication()` method to:
1818

1919
```csharp
2020
app.UseCookieAuthentication(new CookieAuthenticationOptions()
@@ -44,7 +44,7 @@ app.UseOpenIdConnectAuthentication(
4444

4545
In ASP.NET Core, you need to add the `OnTokenValidated` event to update the ticket properties. This sets the ticket expiration time before the application redirects to Microsoft Entra ID for reauthentication.
4646

47-
```
47+
```csharp
4848
services.Configure<OpenIdConnectOptions>(AzureADDefaults.OpenIdScheme, options =>
4949
{
5050
// decouple the token lifetime from the Web App
@@ -74,7 +74,7 @@ services.AddAuthentication(AzureADDefaults.AuthenticationScheme)
7474
.AddAzureAD(options => Configuration.Bind("AzureAd", options))
7575
```
7676

77-
Then add the following codes:
77+
Then add the following code:
7878

7979
```csharp
8080
services.Configure<OpenIdConnectOptions>(AzureADDefaults.OpenIdScheme, options =>
@@ -184,7 +184,7 @@ services.Configure<OpenIdConnectOptions>(options =>
184184
});
185185
```
186186

187-
If you're integrating a ASP.NET Core WS-Fed application, then it might look something like the following:
187+
If you're integrating an ASP.NET Core WS-Fed application, then it might look something like the following:
188188

189189
```csharp
190190
public void ConfigureServices(IServiceCollection services)

0 commit comments

Comments
 (0)