title: Spring Security OAuth2 and FormLogin in a one application
body: <p>In my Spring Boot application I have RESTful API and MVC web dashboard for administration.</p>
  
  <p>Is it possible to have both - Spring Security OAuth2 authentication/authorization(token based, stateless) for RESTful API and FormLogin(stateful) for Spring MVC web dashboard in a one application ?</p>
  
  <p>How to properly configure it with Spring Boot ?</p>