Fix test
Make oauth api more consistent

- Fixes correct logger and format not being used in the oauth calls
- Allows sharing of configuration from the root API
Document new oauth flow