Creating a Custom OAuth App
Installing the plugin
You will need the OAuth2 Plugin plugin in order to authenticate via OAuth2.0. To install the plugin manually, copy the downloaded folder to the wp-content\plugins folder and then enable the plugin via the WooCommerce admin interface.
Authenticate using Custom OAuth Credentials
To create an OAuth application, log into your site through the admin panel, navigate to Users -> Applications, and click Add New. After filling in the required fields, you may click "Create Client" and the following credentials will be displayed:
- Client Key - This will be your OAuthClientId
- Client Secret - This will be your OAuthClientSecret
Note that while creating the OAuth application, you will be required to specify a Callback. This is the url the user will be redirected to after explicitly granting access. WooCommerce does not do any validation on this however, so you can input something like http://localhost:33333.
You can now use these credentials to connect to WooCommerce by setting them as the following connection properties:
- OAuthClientId = Client Id
- OAuthClientSecret = Client Secret
- InitiateOAuth = GETANDREFRESH
- CallbackURL = Callback
- Url = The URL of your instance