added support for oauth2, and choice to use standard authorization