splunk / splunk-sdk-ruby

Splunk Software Development Kit for Ruby
http://dev.splunk.com
Apache License 2.0
36 stars 21 forks source link

Support basic auth #48

Closed shaiguitar closed 8 years ago

shaiguitar commented 8 years ago

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.

https://github.com/splunk/splunk-sdk-ruby/blob/549526e62c9bb97b215fe3fbd1971cf58ab08646/lib/splunk-sdk-ruby/context.rb#L424

https://github.com/splunk/splunk-sdk-ruby/blob/549526e62c9bb97b215fe3fbd1971cf58ab08646/lib/splunk-sdk-ruby/entity/index.rb#L65

shaiguitar commented 8 years ago

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
shaiguitar commented 8 years ago

Wrong search - looks like it is supported. Sorry for the noise!

https://github.com/splunk/splunk-sdk-ruby/blob/master/lib/splunk-sdk-ruby/context.rb#L426-L429