Support for oauth2 authentication