splunk/splunk-sdk-ruby

Support basic auth

shaiguitar opened this issue · 2 comments

Any plans to have the SDK support Basic Authentication? I'm interacting with a splunk server setup that for some reason has more reliable results when using that over splunk auth token mechanism and would like to try setting the SDK using basic auth to verify/benchmark etc.

request["Authorization"] = "Splunk #{@token}" if @token

"Authorization: Splunk #{@service.token}\r\n" +

http://docs.splunk.com/Documentation/Splunk/6.4.3/RESTUM/RESTusing

Basic HTTP authentication

Splunkd also supports basic authentication as defined by RFC 1945. This is the mechanism used when you access resources using a Web browser