Issue refs #1691: implement twitter authentication