I have a user who is allowed to access their gmail through imap using OAuth2.0. I have an OAuth2.0 access token (and an update token). But it's hard for me to figure out how to map this to the XOAUTH parameter. All documentation for generating the XOAUTH parameter is written under the assumption OAuth1.0.
I can follow the sample code to make this work with OAuth1.0. But my server uses OAuth2.0 for other purposes, and I want to use the same code.
source share