title: Spring Boot SAML SSO with stateless SessionCreationPolicy
body: <p>I have to integrate SAML SSO to the spring boot application which already have username password authentication with JWT based authorization. The application have to support existing username password authentication and SAML SSO. I have followed the below URL and configured the application with my SAML entity id and certificates.</p>
  <p><a href="https://github.com/pateluday07/saml-sso-and-slo-demo-idp-azure-sp-springboot" rel="nofollow noreferrer">https://github.com/pateluday07/saml-sso-and-slo-demo-idp-azure-sp-springboot</a></p>
  <p>The front end is developed in Angular and presently it uses JWT to authorize the secure APIs. But while checking SAML SSO its adding JSESSIONID in cookie on the success redirect URL. I have generated JWT and returned as Cookie on redirect so that all other API calls work with JWT. SAML requires state full session.
  Is there a solution we can configure stateless session for JWT for and state full session for SAML SSO in the WebSecurityConfigurerAdapter?</p>
  <p>Thanks in advance.</p>