ui/common: Client authentication helpers