-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
Description
Feature Request
- Yes, I reviewed the contribution guidelines.
Describe your use case and the problem you are facing
Allow for custom authentication mechanisms to be used for REST API request to http requests. At the moment, there is now was to pass custom headers and paramters to REST API to implement different, like OAuth 1 / OAuth 2 / JWT tokens.
Describe the solution you'd like
Adding a filter or other hook at this line
Line 428 in 024fe42
| $response = Utils\http_request( $method, rtrim( $this->api_url, '/' ) . $route, $assoc_args, $headers ); |
This would allow a developer to modify header passed to the request so that different authentication mechanisms can be implemented.