manifest / integrations / plugin-openpub-internal-data
OpenPub Internal Data
Adds internal data to authenticated requests
by Yard | Digital Agency · github.com/openwebconcept/plugin-openpub-internal-data · website
★ 0stars
211composer installs
1forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/openwebconcept/plugin-openpub-internal-data/archive/refs/heads/master.zipAlso on Packagist as plugin/openpub-internal-data:
composer require plugin/openpub-internal-dataFrom the readme
Plugin OpenPub internal data
This plugin is inspired by the pdc-internal-products plugin
Core functionality
The plugin adds private fields to openpub items and includes them with authenticated requests.
Notable difference!
The plugin does not create endpoints for /internal products, and merely acts as a proxy for the base plugin. The plugin handles any incoming openpub request, and if the request is authenticated the plugin will include internal data.
Setup
You will have to edit the portal codebase to include basic auth credentials when a user is logged in.
One of the methods is to create a new singleton looking like this:
And make sure to use this when the user is authenticated, for example like this:
Auth
Similar to pdc-internal-products this plugin uses application passwords to validate authenticated users. You can create an application password in the admin dashboard, see the wp docs
Provide the credentials in the .env file of the portal using
Make sure your credentials are valid, else the request will result in a 401 and the pub item will not be displayed.
Read the full README on GitHub →
Releases
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.