You are here

public function Oauth2ClientPluginRedirectInterface::getPostCaptureRedirect in OAuth2 Client 8.3

Override the default redirection with this method.

The sole grant service that uses this redirection is authorization code. If you are implementing the authorization_code grant and the default in AuthorizationCodeGrantService::getPostCaptureRedirect does not meet your needs,then you can implement both Oauth2ClientPluginInterface along with this interface.

Return value

\Symfony\Component\HttpFoundation\RedirectResponse The redirect response.

1 method overrides Oauth2ClientPluginRedirectInterface::getPostCaptureRedirect()
AuthCodeRedirectExample::getPostCaptureRedirect in examples/oauth2_client_example_plugins/src/Plugin/Oauth2Client/AuthCodeRedirectExample.php
Override the default redirection with this method.

File

src/Plugin/Oauth2Client/Oauth2ClientPluginRedirectInterface.php, line 24

Class

Oauth2ClientPluginRedirectInterface
An interface for plugins that provides a redirection method.

Namespace

Drupal\oauth2_client\Plugin\Oauth2Client

Code

public function getPostCaptureRedirect();