class TrainPlugins::Rest::Basic
Authentication via HTTP Basic
Authentication
Public Instance Methods
auth_parameters()
click to toggle source
# File lib/train-rest/auth_handler/basic.rb, line 12 def auth_parameters { user: options[:username], password: options[:password], } end
check_options()
click to toggle source
# File lib/train-rest/auth_handler/basic.rb, line 7 def check_options raise ArgumentError.new("Need username for Basic authentication") unless options[:username] raise ArgumentError.new("Need password for Basic authentication") unless options[:password] end