You are here

Oauth2ClientGrantServiceInterface.php in OAuth2 Client 8.3

Same filename and directory in other branches
  1. 8.2 src/Service/Grant/Oauth2ClientGrantServiceInterface.php

File

src/Service/Grant/Oauth2ClientGrantServiceInterface.php
View source
<?php

namespace Drupal\oauth2_client\Service\Grant;


/**
 * Interface for OAuth2 Client Grant Services.
 */
interface Oauth2ClientGrantServiceInterface {

  /**
   * Get an OAuth2 access token.
   *
   * @param string $pluginId
   *   The plugin ID of the OAuth2 Client plugin for which an access token
   *   should be retrieved.
   */
  public function getAccessToken($pluginId);

  /**
   * Get the league/oauth2 provider.
   *
   * @param string $pluginId
   *   The plugin ID of an OAuth2 Client plugin.
   *
   * @return \League\OAuth2\Client\Provider\AbstractProvider
   *   The requested provider.
   */
  public function getGrantProvider($pluginId);

}

Interfaces

Namesort descending Description
Oauth2ClientGrantServiceInterface Interface for OAuth2 Client Grant Services.