Of course, doing so wouldn't allow us to dispatch an event before redirecting...

Contribution Date
Technology
Contribution Project
Contribution Details

Of course, doing so wouldn't allow us to dispatch an event before redirecting, but I'm not sure why you would need one. Any thoughts?

Only reason to do this is, to use "destination" from request. https://git.drupalcode.org/project/social_auth/blob/8.x-2.x/src/Controller/OAuth2ControllerBase.php#L182

Updating that too, creating dispatchBeforeRedirect helper method inside UserAuthenticator. we will use that here in-place of,

+ $event = new ProviderRedirectEvent($this->dataHandler, $this->pluginId, $destination ?? NULL); + $this->eventDispatcher->dispatch(SocialAuthEvents::BEFORE_PROVIDER_REDIRECT, $event);
Contribution Author
Files count
0
Patches count
0