@@ -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
2020app .UseCookieAuthentication (new CookieAuthenticationOptions ()
@@ -44,7 +44,7 @@ app.UseOpenIdConnectAuthentication(
4444
4545In 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
4848services .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
8080services .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
190190public void ConfigureServices (IServiceCollection services )
0 commit comments