Fixed compilation error

Fixed compilation error by replacing:
 - OAuth2AuthorizationServerConfigurer with
AuthorizationServerEndpointsConfigurer;
 - OAuth2ResourceServerConfigurer with ResourceServerSecurityConfigurer