I have developed a ASP.net MVC web app with Azure AD authentication (SSO) using OpenID token based authentication.
I developed and tested in on local machine and I was able to login aswell as get User details using Graph API.
But when I uploaded the same project to the production server it started giving signin errors.
I am able to sign in initially but when i try using other browser with other credentials it responds with 'We are unable to sign you in'
Sometimes it keeps bouncing between authentication page. Sometimes it gives Error 400: Bad header.
I don't understand why the same code runs fine at times and gets error rest of the time.!
OpenId, MS Owin package, MS Graph API.