Implement simple OAuth2 class