made working with basic-auth plugin