title: Custom JWT respone in Spring sercurity
body: <p>I use API oauth/token to get JWT token in spring sercurity oauth2. I try to add some additional information in the response by using ((DefaultOAuth2AccessToken) accessToken).setAdditionalInformation(additionalInfo) of enhance method of TokenEnhancer interface. But these additionalInfo added to JWT too, so It is too big. Is there any way to add additionalInfo to the body of oauth/token request, but not in JWT.</p>
  
  <pre><code>@Override
  public OAuth2AccessToken enhance(OAuth2AccessToken accessToken, OAuth2Authentication authentication) {
      final Map&lt;String, Object&gt; additionalInfo = new HashMap&lt;&gt;();
      WebUser webUser = (WebUser) authentication.getUserAuthentication().getPrincipal();
      additionalInfo.put("user_name", authentication.getName());
      additionalInfo.put("roles", authentication.getAuthorities());
      if(webUser.getFunctions() != null) {
          additionalInfo.put("functions",  webUser.getFunctions().toString());
      }else {
          additionalInfo.put("functions",  null);
      }
  
      ((DefaultOAuth2AccessToken) accessToken).setAdditionalInformation(additionalInfo);
      return accessToken;
  }
  </code></pre>