I don’t know webdriver. But sounds like you are doing it wrong/expecting something else to happen. Does webdriver just display the page in order for the user to login?
under oAuth you are supposed to direct a user to the authorize url, where a User then logins and grants your client access to their account, that then GET’s back to your return url which then does the oAuth code dance to exchange for a token.