question

nitinpawar-8572 avatar image
0 Votes"
nitinpawar-8572 asked nitinpawar-8572 edited

.NET CORE SSO Error ERR_TOO_MANY_REDIRECTS

I am using .NET Core 3.1 to develop MVC application. It uses Microsoft Azure Active Directory (SSO) authentication using OpenID.

SSO starts after clicking on a button (an action is called to return challenge, code below)

return Challenge(
new AuthenticationProperties { RedirectUri = "/" }, OpenIdConnectDefaults.AuthenticationScheme);

Everything works fine locally. However, after deploying application to IIS and accessing the application URL using host name (www.example.com/MyApp) I am getting ERR_TOO_MANY_REDIRECTS Error in the browser. This application gets loaded properly from the localhost of server as well.

I am not able to see any error on server side in event viewer. Please help me resolving this.

azure-ad-openid-connect
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers