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:
Developer technologies ASP.NET ASP.NET Core
4,815 questions
Microsoft Security Microsoft Entra Microsoft Entra ID
25,081 questions
Sign in to answer