title: Azure Web App logout from AAD Authentication
body: <p>i am unable to logout from my simple azure web app that has Azure active directory as the authentication provider.</p>
  
  <p>the user logs into the site using the AAD login page shown <a href="https://azure.microsoft.com/en-us/documentation/articles/app-service-web-get-started-2/#authenticate-your-users" rel="nofollow noreferrer">here</a></p>
  
  <p>but i am struggling to find out how to log the user out.</p>
  
  <p>i tried using the various undocumented logout urls like</p>
  
  <pre><code>https://login.microsoftonline.com/&lt;tennantid&gt;/oauth2/logout
  </code></pre>
  
  <p>although they report the the user is logged out, it isnt. As returning to the previous URL goes straight thru without a sign page.</p>
  
  <p>i am guessing there are some cookies that need to be cleared but where on earth is all this stuff documented?</p>
  
  <p>any help is most appreciated.</p>