helper for aoi authentication