title: oauth2 spring-security success and failure handler
body: <p>I am using Spring Security with OAuth2. It's working fine except login success and failure handlers. </p>
  
  <p>Like in spring web security OAuth2 does not have clearly defined success and failure handlers hooks to update DB and set response accordingly. </p>
  
  <p>What filter do I need to extend and what should its position be in the Spring Security filter chain?</p>