OpenIdConnectAuthenticationHandler: message.State is null or empty.
Shripad Godse
25
Reputation points
I have a multi-tenant application in Microsoft Entra ID, which I use for Single Sign-On in my .NET 6 (API) and Angular 7 application as shown in the attached screenshots.
There are two issues I'm facing:
- After updating from .NET 3.1 to 6, I'm not able to log in using SSO on my local machine. I suspect this may be due to a proxy server change, but I'm not sure how to debug this issue properly.
- When I click on my application in the My App section of Office apps, I am getting an exception message (this is not related to updating .NET version). The exception message is:
System.Exception: An error was encountered while handling the remote login. ---> System.Exception: OpenIdConnectAuthenticationHandler: message.State is null or empty.
Implementation:
Startup.cs
Controller:
My App from microsoft app section:
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,816 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,963 questions
Sign in to answer