I created the configuration class telling all requests must be authorized and setting httpBasic():
httpBasic()
@Conf