PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.2
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.2
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / src / myyoast-client / application / ports / client-authenticator-interface.php

client-authenticator-interface.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 28.2, at src/myyoast-client/application/ports/client-authenticator-interface.php

25 lines 806 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
3
4 namespace Yoast\WP\SEO\MyYoast_Client\Application\Ports;
5
6 use Yoast\WP\SEO\MyYoast_Client\Application\Exceptions\Client_Authentication_Exception;
7
8 /**
9 * Port for OAuth client authentication (private_key_jwt).
10 */
11 interface Client_Authenticator_Interface {
12
13 /**
14 * Creates a signed client_assertion JWT for the given audience.
15 *
16 * @param string $client_id The registered client_id.
17 * @param string $audience The audience URL (typically the token endpoint).
18 *
19 * @return string The signed client_assertion JWT.
20 *
21 * @throws Client_Authentication_Exception If key retrieval or signing fails.
22 */
23 public function create_client_assertion( string $client_id, string $audience ): string;
24 }
25