Oauth2 provider and consumer authentication logic and config for We.js