-
Notifications
You must be signed in to change notification settings - Fork 86
activitypub_oauth_require_pkce
github-actions[bot] edited this page Apr 24, 2026
·
2 revisions
Filter whether PKCE is required for public OAuth clients.
Return false to relax the default and allow public clients to complete the authorization code grant without PKCE. This is not recommended.
/**
* Filter whether PKCE is required for public OAuth clients.
*
* Return false to relax the default and allow public clients to
* complete the authorization code grant without PKCE. This is
* not recommended.
*
* @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 true. -
string$client_idThe OAuth client ID.
\apply_filters( 'activitypub_oauth_require_pkce', true, $client_id )Follow @activitypub.blog@activitypub.blog for updates and news.