Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

User authentication fails while redirecting from IdentityServer4 to website

  • Không có trả lời
  • 4 gặp vấn đề này
  • 105 lượt xem
more options

Dear Support Team, I am running two websites based on ASP.NET Core: MVC and Identityserver4 as SSO. I am facing the following problem: when I need to authenticate a user on the MVC website, I redirect them to identityserver4, where the user goes through the authentication process and is being redirected back to the original MVC website. Identityserver4 website works correctly. It authenticates users and redirects them back to the original MVC website page by using redirectUrl. Chrome and IE11/Eedge return the MVC website page where a user is authenticated, while Firefox returns the webpage where the user is not authenticated. However, in case I refresh the webpage, Firefox displays that the user is authenticated.

In my opinion, the problem is in the way of how Firefox caches web pages. It just shows me cached webpage after redirect instead displaying a new page where a user is authenticated. I tried to set request headers "Cache-Control: no-store, no-cache" and checked them in fiddler4. Unfortunately, it did not fix the problem. I would appreciate any assistance with this problem.

Dear Support Team, I am running two websites based on ASP.NET Core: MVC and Identityserver4 as SSO. I am facing the following problem: when I need to authenticate a user on the MVC website, I redirect them to identityserver4, where the user goes through the authentication process and is being redirected back to the original MVC website. Identityserver4 website works correctly. It authenticates users and redirects them back to the original MVC website page by using redirectUrl. Chrome and IE11/Eedge return the MVC website page where a user is authenticated, while Firefox returns the webpage where the user is not authenticated. However, in case I refresh the webpage, Firefox displays that the user is authenticated. In my opinion, the problem is in the way of how Firefox caches web pages. It just shows me cached webpage after redirect instead displaying a new page where a user is authenticated. I tried to set request headers "Cache-Control: no-store, no-cache" and checked them in fiddler4. Unfortunately, it did not fix the problem. I would appreciate any assistance with this problem.