You are here

Oauth2ClientPluginRedirectInterface.php in OAuth2 Client 8.3

File

src/Plugin/Oauth2Client/Oauth2ClientPluginRedirectInterface.php
View source
<?php

namespace Drupal\oauth2_client\Plugin\Oauth2Client;


/**
 * An interface for plugins that provides a redirection method.
 *
 * @package Drupal\oauth2_client\Plugin\Oauth2Client
 */
interface Oauth2ClientPluginRedirectInterface {

  /**
   * 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 \Symfony\Component\HttpFoundation\RedirectResponse
   *   The redirect response.
   */
  public function getPostCaptureRedirect();

}

Interfaces

Namesort descending Description
Oauth2ClientPluginRedirectInterface An interface for plugins that provides a redirection method.