PLINK-203: migrate openid code