Simplified usage of oauth2.