try again, with puppetforge modules, correctly included now
[mirror/dsa-puppet.git] / 3rdparty / modules / aviator / lib / puppet / feature / faraday / request / token_authentication.rb
1 module Faraday
2   class Request::TokenAuthentication < Request.load_middleware(:authorization)
3     # Public
4     def self.header(token, options = nil)
5       options ||= {}
6       options[:token] = token
7       super(:Token, options)
8     end
9
10     def initialize(app, token, options = nil)
11       super(app, token, options)
12     end
13   end
14 end
15