lwhitelock / HuduAPI

A powershell API for Hudu Documentation
MIT License
53 stars 45 forks source link

Add new methods to allow custom headers in each Hudu API Request #47

Closed craysiii closed 1 year ago

craysiii commented 1 year ago

Currently one is unable to add custom headers to the request object in a clean manner.

This functionality can be useful in situations where your Hudu instance is hidden behind Cloudflare Zero Trust. In this instance, the developer needs to add Client ID and Client Secret headers to each request to pass authentication through the tunnel.

I've gone ahead and implemented two new methods, New-HuduCustomHeaders and Remove-HuduCustomHeaders to accommodate this requirement.

Let me know if there are any issues or concerns you have.