Added OAuth 2.0 functionality