File ManagerCurrent Directory: wp-content/plugins/google-site-kit/includes/Core/Authentication/ClientsLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 UTC 2026 x86_64Edit File: OAuth2.php <?php /** * Class Google\Site_Kit\Core\Authentication\Clients\OAuth2 * * @package Google\Site_Kit * @copyright 2022 Google LLC * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * @link https://sitekit.withgoogle.com */ namespace Google\Site_Kit\Core\Authentication\Clients; use Google\Site_Kit_Dependencies\Google\Auth\OAuth2 as Google_Service_OAuth2; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Query; use Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface; /** * Class for connecting to Google APIs via OAuth2. * * @since 1.87.0 * @access private * @ignore */ class OAuth2 extends Google_Service_OAuth2 { /** * Overrides generateCredentialsRequest with additional parameters. * * @since 1.87.0 * * @param array $extra_params Optional. Array of extra parameters to fetch with. * @return RequestInterface Token credentials request. */ public function generateCredentialsRequest( $extra_params = array() ) { $request = parent::generateCredentialsRequest(); $grant_type = $this->getGrantType(); if ( empty( $extra_params ) || 'refresh_token' !== $grant_type ) { return $request; } $params = array( 'body' => Query::build( array_merge( Query::parse( Utils::copyToString( $request->getBody() ) ), $extra_params ) ), ); return Utils::modifyRequest( $request, $params ); } } Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)DirClient_Factory.phpFile6.51 KB Rename | Delete | EditGoogle_Site_Kit_Client.phpFile9.58 KB Rename | Delete | EditGoogle_Site_Kit_Proxy_Client.phpFile3.89 KB Rename | Delete | EditOAuth2.phpFile1.42 KB Rename | Delete | EditOAuth_Client.phpFile20.58 KB Rename | Delete | EditOAuth_Client_Base.phpFile11.19 KB Rename | Delete | Edit