3rd-party pipeline supports updating email optin

Fix all the 3rd party auth scenarios.

Update pipeline to preserve parameters.

Updating tests

@wedaly @dianakhuang @rlucioni If any could review, would appreciate it!
1) Would it be possible to move this into its own test method?
2) Could you please add a test case for `email_opt_in="true"` as well?