Use @Authenticated not deprecated @BasicAuth