PLINK-133 use getAgent() throughout authentication API