Oauth2 Full authentication is required to access this resource code example
Example: Oauth2 Full authentication is required to access this resource
@Override
public void configure(AuthorizationServerSecurityConfigurer oauthServer) throws Exception {
//oauthServer.realm("sparklr2/client");
oauthServer.allowFormAuthenticationForClients();
}