title: AzureAd authentication - STATELESS (Spring Boot Java)
body: <p>I have a project with AAD authentication, everything works fine until I add the following code to my HttpSecurity config</p>
  <pre class="lang-java prettyprint-override"><code>    http
                      .sessionManagement()
                      .sessionCreationPolicy(SessionCreationPolicy.STATELESS)
                      .and();
  </code></pre>
  <p>Application starts asking to login again and again in endless cycle.</p>
  <p>If I remove that part of code - the app works as expected but there are issues with swagger.<br />
  Looks like swagger reads cached authorization from the app, and swagger logout button does no effect. (also app can read cached authorization from swagger login)</p>
  <p>This string in properties has no effect.</p>
  <pre><code>spring.cloud.azure.active-directory.sessions-stateless=true
  </code></pre>
  <p>Is there any way to separate work of the app and swagger - so they do not interfere each other authorization?
  Thx.</p>