Creating a Custom OAuth Application
Creating a Custom OAuth Application
WordPress uses the OAuth authentication standard, which requires the authenticating user to interact with WordPress via the browser. The driver facilitates the OAuth exchange in various ways, as described in "Connecting to WordPress".
Procedure
The following steps install the OAuth 2.0 plug-in and registers the driver in the WordPress admin console, creating what WordPress calls a "connected app". They also generate the OAuth credentials that are configured to connect via a Desktop, Web, or Headless Server.- Log into your site through the WordPress adin panel.
- Install the OAuth2 Plugin.
To install the plugin manually:- Download the plugin folder.
- Copy the downloaded folder to the wp-content\plugins folder.
- In the WordPress admin interface, use the Plugins menu to activate the plugin.
- Navigate to OAuth Server > Add New Client.
- Fill in all required fields. Set CallbackURL to http://localhost:portnumber.
- Click Create Client. The admin panel displays the Client Id, Client Key, and Client Secret. Record these values for future reference.
- Navigate to Users > Applications > YourAppName and approve your new application.
You are now ready to connect and authenticate to WordPress, as described in the OAuth 2.0 Authentication section of "Connecting to WordPress".