title: Sign in to Nodejs web app, using Azure AD
body: <p>I'm trying to figure out how you can authenticate users using Azure AD. In order to experiment, I tried the example from Microsoft, found at <a href="https://github.com/Azure-Samples/active-directory-node-webapp-openidconnect" rel="noreferrer">https://github.com/Azure-Samples/active-directory-node-webapp-openidconnect</a>.</p>
  
  <p>I've set up an Active Directory in Azure, and added a new application called <em>test</em> with add id uri: <a href="http://testmagnhalv" rel="noreferrer">http://testmagnhalv</a>.</p>
  
  <p>Now, when I run the server, following the instructions in the readme, I get redirected to login.microsoftonline.com and promted to log in. But when I provide username/pw, I get redirected back to the login page again. </p>
  
  <p>I suspect the problem is that I don't set the variables in the config.json correctly, but I'm having a hard time finding documentation for what values need to be set. </p>
  
  <p>Anyone got any experience with this example?</p>