module Elastic::EnterpriseSearch::WorkplaceSearch::Request

The Request module is included in the WorkplaceSearch Client to override EnterpriseSearch client's authentication method with Workplace's authentication.

Public Instance Methods

setup_authentication_header() click to toggle source
# File lib/elastic/workplace-search/workplace_search.rb, line 28
def setup_authentication_header
  case http_auth
  when Hash
    basic_auth_header
  when String
    "Bearer #{http_auth}"
  end
end