VG-1802: added authentication code