You can't handle it like this. OAuth is a two-stage process. You redirect to the OAuth provider and then once the user authorizes there, they redirect back to your site, where you pickup where you left off.
That means you need two actions for this: one to initiate the process and one to receive the payload from the provider after authorization.