Base oauth and twoauth class