Skip to content

Commit 7c1a289

Browse files
authored
Update troubleshooting guide for OIDC infinite redirection
1 parent 9d7e08f commit 7c1a289

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

support/entra/entra-id/app-integration/troubleshoot-oidc-http-infinite-redirection.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
---
22
title: Infinite redirection between OpenID Connect app and Entra ID
3-
description: Guidance for troubleshooting infinite redirection between OpenID Connect app and Entra ID.
3+
description: Provides guidance for troubleshooting infinite redirection between the OpenID Connect app and Entra ID.
44
ms.date: 12/26/2024
55
ms.author: bachoang
66
ms.service: entra-id
77
ms.custom: sap:Microsoft Entra App Integration and Development
88
---
99

10-
# Troubleshooting infinite redirection between OIDC app and Entra ID
10+
# Troubleshoot infinite redirection between OIDC app and Entra ID
1111

12-
This article describes an infinite redirection issue between an OpenID Connect (OIDC) application and Microsoft Entra ID.
12+
This article describes an infinite redirection issue that exists between an OpenID Connect (OIDC) application and Microsoft Entra ID.
1313

1414
## Symptoms
1515

16-
When you browse to a website that is built by using an OpenID Connect (OIDC) app and Microsoft Entra ID, the browser enters an infinite loop between the website and Microsoft Entra ID authentication process.
16+
When you browse to a website that's built by using an OpenID Connect (OIDC) app and Microsoft Entra ID, the browser enters an infinite loop that forms between the website and the Microsoft Entra ID authentication process.
1717

18-
The problem specifically occurs when you start browsing the website using the HTTP protocol. When using HTTPS, the issue doesn't occur.
18+
The issue specifically occurs when you browse the website by using the HTTP protocol. When you use HTTPS, the issue doesn't occur.
1919

2020
## Cause
2121

22-
The `.AspNet.Cookies` cookie that stores the access token isn't sent in HTTP requests due to its secure attribute.
22+
The `.AspNet.Cookies` cookie that stores the access token isn't sent in HTTP requests because of its secure attribute.
2323

2424
## Solution
2525

26-
### Recommended Fix: Enforce HTTPS Navigation
26+
### Recommended Fix: Enforce HTTPS navigation
2727

28-
To resolve the issue, enforce HTTPS navigation for the site. HTTPS is always recommended for sites requiring authentication.
28+
To resolve the issue, enforce HTTPS navigation for the site. HTTPS is always recommended for sites that require authentication.
2929

30-
### Workaround
30+
## Workaround
3131

32-
If your scenario requires the initial navigation to happen over http, you can customize the Cookies Authentication middleware to allow the authentication AspNet cookie for both HTTP and HTTPS scheme by setting the `CookieSecure` attribute to `CookieSecureOption.Never` as followed in the `Startup.Auth.cs` file:
32+
If your scenario requires the initial navigation to occur over HTTP, you can customize the Cookies Authentication middleware to allow the authentication AspNet cookie for both the HTTP and HTTPS schemes by setting the `CookieSecure` attribute to `CookieSecureOption.Never`, as shown in the following `Startup.Auth.cs` file.
3333

3434
> [!Note]
35-
> This workaround isn't recommended for production environments as it compromises security by allowing cookies to be sent over HTTP.
35+
> This workaround isn't recommended for production environments because it compromises security by allowing cookies to be sent over HTTP.
3636
3737
```csharp
3838
public void ConfigureAuth(IAppBuilder app)
@@ -53,6 +53,6 @@ public void ConfigureAuth(IAppBuilder app)
5353
}
5454
```
5555

56-
This issue is also discussed in the following GitHub issue: [ASP.NET Issue #219](https://github.com/aspnet/Security/issues/219).
56+
This issue is discussed also in [this ASP.NET Security Blog article (Issue #219)](https://github.com/aspnet/Security/issues/219).
5757
5858
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]

0 commit comments

Comments
 (0)