Added code for OAuth2.0 Authentication