Skip to content

Allow for custom authentication mechanisms  #142

@spacedmonkey

Description

@spacedmonkey

Feature Request

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

$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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions