A fixed 2014 version of Apple's NameAndPassword auth plugin sample