added flag to check if will use we.js oauth server