update sample to support certificate based two factor auth