title: authorization code from Azure AD OAuth2AuthorizationResponse
body: <p>I have got the Springboot Active Directory example up and running as specified here:</p>
  
  <p><a href="https://github.com/Microsoft/azure-spring-boot/tree/master/azure-spring-boot-samples/azure-active-directory-spring-boot-backend-sample" rel="nofollow noreferrer">https://github.com/Microsoft/azure-spring-boot/tree/master/azure-spring-boot-samples/azure-active-directory-spring-boot-backend-sample</a></p>
  
  <p>I can log in with my Azure AD credentials, using a Client ID that I created and granted 'Windows Azure Active Directory' permissions on.</p>
  
  <p>Next step is I'd like to get the logged-in user's profile picture, so I need to get the Authorization Code from the <code>OAuth2AuthorizationResponse</code></p>
  
  <p>It's not clear to me how to access this data.  It's not available in the returned OAuth2User object</p>
  
  <p>I tried setting up a HandlerInterceptor on /login/oauth2/code/azure so I can intercept the Response, but this never gets hit (?)</p>
  
  <p>I also tried adding a custom filter:</p>
  
  <pre><code>http.addFilterAfter(
                new CustomFilter(), BasicAuthenticationFilter.class)
  </code></pre>
  
  <p>but this never gets hit for the <code>/login/oauth2/code/azure</code> URI</p>