bentleymi / ta-webtools

Splunk Apps and Documentation
15 stars 9 forks source link

Setting the Authorization header on the modular input doesn't work #20

Closed abedegno closed 2 years ago

abedegno commented 3 years ago

When setting the custom request header on a modular input and defining an Authorization header (e.g. for bearer/token authentication) the header is not including in the request.

This is because the username/password is always passed into the requests.request call-forcing basic authentication. Pull request #19 fixes this by including an additional check on the username/password and passing None into the requests.request call if they are empty.

bentleymi commented 2 years ago

Merged a while back