[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/vendor/lusitanian/oauth/src/OAuth/OAuth2/Service/ -> ServiceInterface.php (source)

   1  <?php
   2  
   3  namespace OAuth\OAuth2\Service;
   4  
   5  use OAuth\Common\Consumer\CredentialsInterface;
   6  use OAuth\Common\Storage\TokenStorageInterface;
   7  use OAuth\Common\Token\TokenInterface;
   8  use OAuth\Common\Http\Client\ClientInterface;
   9  use OAuth\Common\Http\Exception\TokenResponseException;
  10  use OAuth\Common\Service\ServiceInterface as BaseServiceInterface;
  11  use OAuth\Common\Http\Uri\UriInterface;
  12  
  13  /**
  14   * Defines the common methods across OAuth 2 services.
  15   */
  16  interface ServiceInterface extends BaseServiceInterface
  17  {
  18      /**
  19       * Authorization methods for various services
  20       */
  21      const AUTHORIZATION_METHOD_HEADER_OAUTH    = 0;
  22      const AUTHORIZATION_METHOD_HEADER_BEARER   = 1;
  23      const AUTHORIZATION_METHOD_QUERY_STRING    = 2;
  24      const AUTHORIZATION_METHOD_QUERY_STRING_V2 = 3;
  25  
  26      /**
  27       * Retrieves and stores/returns the OAuth2 access token after a successful authorization.
  28       *
  29       * @param string $code The access code from the callback.
  30       *
  31       * @return TokenInterface $token
  32       *
  33       * @throws TokenResponseException
  34       */
  35      public function requestAccessToken($code);
  36  }


Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1