-
Notifications
You must be signed in to change notification settings - Fork 85
activitypub_oauth_require_pkce
github-actions[bot] edited this page Mar 12, 2026
·
1 revision
Filter whether PKCE is required for public OAuth clients.
Return true to enforce PKCE (recommended per OAuth 2.1). Default false for backward compatibility with older clients.
/**
* Filter whether PKCE is required for public OAuth clients.
*
* Return true to enforce PKCE (recommended per OAuth 2.1).
* Default false for backward compatibility with older clients.
*
* @param bool $require
* @param string $client_id
* @return bool The filtered value.
*/
function my_activitypub_oauth_require_pkce_callback( bool $require, string $client_id ) {
// Your code here.
return $require;
}
add_filter( 'activitypub_oauth_require_pkce', 'my_activitypub_oauth_require_pkce_callback', 10, 2 );-
bool$requireWhether to require PKCE. Default false. -
string$client_idThe OAuth client ID.
\apply_filters( 'activitypub_oauth_require_pkce', false, $client_id )Follow @activitypub.blog@activitypub.blog for updates and news.