XOAUTH2 support

small patch for XOAUTH2 support