/usr/lib/ruby/vendor_ruby/faraday/request/token_authentication.rb is in ruby-faraday 0.9.2-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | module Faraday
class Request::TokenAuthentication < Request.load_middleware(:authorization)
# Public
def self.header(token, options = nil)
options ||= {}
options[:token] = token
super(:Token, options)
end
def initialize(app, token, options = nil)
super(app, token, options)
end
end
end
|