Added support for generating xoauth2 tokens