📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: LiteSpeed
2026-06-28 20:57:31
📂
/ (Root)
/
home
/
apkbfjox
/
kattu.com.pk
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
myyoast-client
/
application
/
ports
📍 /home/apkbfjox/kattu.com.pk/wp-content/plugins/wordpress-seo/src/myyoast-client/application/ports
🔄 Refresh
✏️
Editing: oauth-server-client-interface.php
Writable
<?php // phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure. namespace Yoast\WP\SEO\MyYoast_Client\Application\Ports; use SensitiveParameter; use Yoast\WP\SEO\MyYoast_Client\Domain\Auth_Token_Type; use Yoast\WP\SEO\MyYoast_Client\Domain\HTTP_Response; /** * Port for communicating with the OAuth authorization/resource server. * * Handles DPoP proof injection, nonce management, and authenticated requests. */ interface OAuth_Server_Client_Interface { /** * Sends an HTTP request with optional DPoP proof injection, nonce retry, and rate limit handling. * * @param string $method The HTTP method. * @param string $url The request URL. * @param array<string, string|int|bool|string[]|null> $options Request options: 'headers', 'body', 'timeout', 'dpop' (bool), 'access_token'. * * @return HTTP_Response The parsed response. */ public function request( string $method, string $url, array $options = [] ): HTTP_Response; /** * Sends an authenticated resource request with DPoP proof. * * @param string $method The HTTP method. * @param string $url The resource URL. * @param string $access_token The access token. * @param string $token_type An Auth_Token_Type constant. * @param array<string, string|int|bool|string[]|null> $options Additional request options. * * @return HTTP_Response The parsed response. */ public function authenticated_request( string $method, string $url, // phpcs:ignore PHPCompatibility.Attributes.NewAttributes.PHPNativeAttributeFound -- No-op on PHP < 8.2; redacts parameter from stack traces on PHP 8.2+. #[SensitiveParameter] string $access_token, string $token_type = Auth_Token_Type::DPOP, array $options = [] ): HTTP_Response; }
💾 Save Changes
❌ Cancel