title: Sign In Sorry, but we’re having trouble signing you in. We received a bad request
body: <ol>
  <li><p>I am using azure AD authentication to authenticate a user in my MVC
  application.And I published my application on azure and it is
  working fine.</p></li>
  <li><p>But, when I run my application locally then it Microsoft's login
  page comes up and when I enter credentials and click on SignIn
  button then it is giving "Sorry, but we’re having trouble signing
  you in.We received a bad request." 
  But the same application is on azure and if I access it from there then it    allow me to login.</p></li>
  </ol>
  
  <hr>
  
  <p>To create this apllication I follwed <a href="https://github.com/Azure-Samples/active-directory-dotnet-webapp-openidconnect" rel="nofollow noreferrer">link to add azure AD authentication</a></p>
  
  <p><a href="https://i.stack.imgur.com/x2QzL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x2QzL.png" alt="enter image description here"></a></p>