Implement basic oauth2.0 support