Enable User Consent Dialog | WordPress OAuth Codex

Enable User Consent Dialog

Documentation under "How To" for WP OAuth Server


Requires version 3.4.1 or greater

The consent dialog works like any other dialog from systems like Google or Facebook and gives the user the ability to allow access to their data.

User Consent  “Consent” is the action by an owner or user that authorizes access to protected information. Consent is only requested when using the “Authorization Code” grant type. WP OAuth Server has disabled this feature by default in the past and will continue to disable it by default in the future. If you would like for WP OAuth Server to request permission from the user, you will need to use the filter below.

add_filter( 'wo_use_grant_request', '__return_true' );