add post method for OAuth2 class