You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/entra/entra-id/app-integration/troubleshoot-oidc-http-infinite-redirection.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,38 +1,38 @@
1
1
---
2
2
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.
4
4
ms.date: 12/26/2024
5
5
ms.author: bachoang
6
6
ms.service: entra-id
7
7
ms.custom: sap:Microsoft Entra App Integration and Development
8
8
---
9
9
10
-
# Troubleshooting infinite redirection between OIDC app and Entra ID
10
+
# Troubleshoot infinite redirection between OIDC app and Entra ID
11
11
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.
13
13
14
14
## Symptoms
15
15
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.
17
17
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.
19
19
20
20
## Cause
21
21
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.
23
23
24
24
## Solution
25
25
26
-
### Recommended Fix: Enforce HTTPS Navigation
26
+
### Recommended Fix: Enforce HTTPS navigation
27
27
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.
29
29
30
-
###Workaround
30
+
## Workaround
31
31
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.
33
33
34
34
> [!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.
36
36
37
37
```csharp
38
38
publicvoidConfigureAuth(IAppBuilderapp)
@@ -53,6 +53,6 @@ public void ConfigureAuth(IAppBuilder app)
0 commit comments