Module: Kybus::Client::Session::BasicAuth
- Included in:
- Base
- Defined in:
- lib/kybus/client/session/basic_auth.rb
Overview
Implements basic auth functionality for http client
Instance Method Summary collapse
Instance Method Details
#basic_auth(request, user:, password:) ⇒ Object
8 9 10 |
# File 'lib/kybus/client/session/basic_auth.rb', line 8 def basic_auth(request, user:, password:) request[:basic_auth] ||= { username: user, password: } end |