used the common method in OAuth1 and 2 handlers, and moved the method to
common class OAuthHandler.