• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Yoast SEO a2z

Yoast SEO a2z

WordPress SEO a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Files / vendor_prefixed/league/oauth2-client/src/Provider/AbstractProvider.php


Lines:

1 to 86 of 86
<?php


/**
 * This file is part of the league/oauth2-client library
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright Copyright (c) Alex Bilbie <hello@alexbilbie.com>
 * @license http://opensource.org/licenses/MIT MIT
 * @link http://thephpleague.com/oauth2-client/ Documentation
 * @link https://packagist.org/packages/league/oauth2-client Packagist
 * @link https://github.com/thephpleague/oauth2-client GitHub
 */
namespace YoastSEO_Vendor\League\OAuth2\Client\Provider;

use YoastSEO_Vendor\GuzzleHttp\Client as HttpClient;
use YoastSEO_Vendor\GuzzleHttp\ClientInterface as HttpClientInterface;
use YoastSEO_Vendor\GuzzleHttp\Exception\BadResponseException;
use YoastSEO_Vendor\League\OAuth2\Client\Grant\AbstractGrant;
use YoastSEO_Vendor\League\OAuth2\Client\Grant\GrantFactory;
use YoastSEO_Vendor\League\OAuth2\Client\OptionProvider\OptionProviderInterface;
use YoastSEO_Vendor\League\OAuth2\Client\OptionProvider\PostAuthOptionProvider;
use YoastSEO_Vendor\League\OAuth2\Client\Provider\Exception\IdentityProviderException;
use YoastSEO_Vendor\League\OAuth2\Client\Token\AccessToken;
use YoastSEO_Vendor\League\OAuth2\Client\Token\AccessTokenInterface;
use YoastSEO_Vendor\League\OAuth2\Client\Tool\ArrayAccessorTrait;
use YoastSEO_Vendor\League\OAuth2\Client\Tool\GuardedPropertyTrait;
use YoastSEO_Vendor\League\OAuth2\Client\Tool\QueryBuilderTrait;
use YoastSEO_Vendor\League\OAuth2\Client\Tool\RequestFactory;
use YoastSEO_Vendor\Psr\Http\Message\RequestInterface;
use YoastSEO_Vendor\Psr\Http\Message\ResponseInterface;
use UnexpectedValueException;
/* class AbstractProvider */
/* function AbstractProvider::__construct() – Constructs an OAuth 2.0 service provider. */
/* function AbstractProvider::getAllowedClientOptions() – Returns the list of options that can be passed to the HttpClient */
/* function AbstractProvider::setGrantFactory() – Sets the grant factory instance. */
/* function AbstractProvider::getGrantFactory() – Returns the current grant factory instance. */
/* function AbstractProvider::setRequestFactory() – Sets the request factory instance. */
/* function AbstractProvider::getRequestFactory() – Returns the request factory instance. */
/* function AbstractProvider::setHttpClient() – Sets the HTTP client instance. */
/* function AbstractProvider::getHttpClient() – Returns the HTTP client instance. */
/* function AbstractProvider::setOptionProvider() – Sets the option provider instance. */
/* function AbstractProvider::getOptionProvider() – Returns the option provider instance. */
/* function AbstractProvider::getState() – Returns the current value of the state parameter. */
/* function AbstractProvider::getBaseAuthorizationUrl() – Returns the base URL for authorizing a client. */
/* function AbstractProvider::getBaseAccessTokenUrl() – Returns the base URL for requesting an access token. */
/* function AbstractProvider::getResourceOwnerDetailsUrl() – Returns the URL for requesting the resource owner’s details. */
/* function AbstractProvider::getRandomState() – Returns a new random string to use as the state parameter in an
authorization flow. */
/* function AbstractProvider::getDefaultScopes() – Returns the default scopes used by this provider. */
/* function AbstractProvider::getScopeSeparator() – Returns the string that should be used to separate scopes when building
the URL for requesting an access token. */
/* function AbstractProvider::getAuthorizationParameters() – Returns authorization parameters based on provided options. */
/* function AbstractProvider::getAuthorizationQuery() – Builds the authorization URL’s query string. */
/* function AbstractProvider::getAuthorizationUrl() – Builds the authorization URL. */
/* function AbstractProvider::authorize() – Redirects the client for authorization. */
/* function AbstractProvider::appendQuery() – Appends a query string to a URL. */
/* function AbstractProvider::getAccessTokenMethod() – Returns the method to use when requesting an access token. */
/* function AbstractProvider::getAccessTokenResourceOwnerId() – Returns the key used in the access token response to identify the resource owner. */
/* function AbstractProvider::getAccessTokenQuery() – Builds the access token URL’s query string. */
/* function AbstractProvider::verifyGrant() – Checks that a provided grant is valid, or attempts to produce one if the
provided grant is a string. */
/* function AbstractProvider::getAccessTokenUrl() – Returns the full URL to use when requesting an access token. */
/* function AbstractProvider::getAccessTokenRequest() – Returns a prepared request for requesting an access token. */
/* function AbstractProvider::getAccessToken() – Requests an access token using a specified grant and option set. */
/* function AbstractProvider::getRequest() – Returns a PSR-7 request instance that is not authenticated. */
/* function AbstractProvider::getAuthenticatedRequest() – Returns an authenticated PSR-7 request instance. */
/* function AbstractProvider::createRequest() – Creates a PSR-7 request instance. */
/* function AbstractProvider::getResponse() – Sends a request instance and returns a response instance. */
/* function AbstractProvider::getParsedResponse() – Sends a request and returns the parsed response. */
/* function AbstractProvider::parseJson() – Attempts to parse a JSON response. */
/* function AbstractProvider::getContentType() – Returns the content type header of a response. */
/* function AbstractProvider::parseResponse() – Parses the response according to its content-type header. */
/* function AbstractProvider::checkResponse() – Checks a provider response for errors. */
/* function AbstractProvider::prepareAccessTokenResponse() – Prepares an parsed access token response for a grant. */
/* function AbstractProvider::createAccessToken() – Creates an access token from a response. */
/* function AbstractProvider::createResourceOwner() – Generates a resource owner object from a successful resource owner
details request. */
/* function AbstractProvider::getResourceOwner() – Requests and returns the resource owner of given access token. */
/* function AbstractProvider::fetchResourceOwnerDetails() – Requests resource owner details. */
/* function AbstractProvider::getDefaultHeaders() – Returns the default headers used by this provider. */
/* function AbstractProvider::getAuthorizationHeaders() – Returns the authorization headers used by this provider. */
/* function AbstractProvider::getHeaders() – Returns all headers used by this provider for a request. */
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      File name: vendor_prefixed/league/oauth2-client/src/Provider/AbstractProvider.php
      Plugin ref: Yoast SEO
      Version: 15.4
      Deprecated?: No
      API Letters: C,L,O,P,V

      Published: 27th November 2019 | Last updated: 27th November 2019

      Primary Sidebar

      Information

      File name: vendor_prefixed/league/oauth2-client/src/Provider/AbstractProvider.php
      Plugin ref: Yoast SEO
      Version: 15.4
      Deprecated?: No
      API Letters: C,L,O,P,V

      vendor_prefixed/league/oauth2-client/src/Provider

      Footer

      Yoast SEO a2z
      Yoast SEO a2z
      WordPress SEO a2z
      WordPress 5.6
      WordPress a2z
      WordPress core a2z
      Genesis Theme Framework a2z
      Jetpack a2z
      WordPress develop tests
      Easy Digital Downloads a2z
      WooCommerce a2z
      Yoast SEO a2z
      WordPress Blocks

      Site:  wordpress-seo.wp-a2z.org
      © Copyright Yoast SEO a2z 2017-2021. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins

      • Home
      • Blog
      • Sitemap
      • Sites