Class: ArrowFlight::Client
- Inherits:
-
Object
- Object
- ArrowFlight::Client
- Defined in:
- lib/arrow-flight/client.rb
Instance Method Summary collapse
-
#authenticate_basic(user, password, options = nil) ⇒ ArrowFlight::CallOptions
Authenticates by Basic authentication.
Instance Method Details
#authenticate_basic(user, password, options = nil) ⇒ ArrowFlight::CallOptions
Authenticates by Basic authentication.
37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/arrow-flight/client.rb', line 37 def authenticate_basic(user, password, =nil) unless .is_a?(CallOptions) = CallOptions.try_convert() end ||= CallOptions.new _success, bearer_name, bearer_value = authenticate_basic_token(user, password, ) invalid_bearer = (bearer_name.empty? or bearer_value.empty?) unless invalid_bearer .add_header(bearer_name, bearer_value) end end |