Sha256: fd40bad82c73954f7557975503e471e9d6a8c0f67b4ae4f2eda03a0afdd78289

Contents?: true

Size: 244 Bytes

Versions: 53

Compression:

Stored size: 244 Bytes

Contents

class Ey::Core::TokenAuthentication < Faraday::Response::Middleware
  attr_reader :token

  def initialize(app, token)
    super(app)
    @token = token
  end

  def call(env)
    env[:request_headers]["X-EY-TOKEN"] = token
    super
  end
end

Version data entries

53 entries across 53 versions & 3 rubygems

Version Path
ey-core-3.6.4 lib/ey-core/token_authentication.rb
ey-core-3.6.3 lib/ey-core/token_authentication.rb
ey-core-3.6.1 lib/ey-core/token_authentication.rb
groove-ey-core-3.6.3 lib/ey-core/token_authentication.rb
groove-ey-core-3.6.2 lib/ey-core/token_authentication.rb
groove-ey-core-3.6.1 lib/ey-core/token_authentication.rb
ey-core-3.5.0 lib/ey-core/token_authentication.rb
ey-core-3.4.4 lib/ey-core/token_authentication.rb
ey-core-3.4.2 lib/ey-core/token_authentication.rb
ey-core-3.4.1 lib/ey-core/token_authentication.rb
ey-core-3.4.0 lib/ey-core/token_authentication.rb
ey-core-3.3.1 lib/ey-core/token_authentication.rb
ey-core-3.3.0 lib/ey-core/token_authentication.rb
ey-core-3.2.6 lib/ey-core/token_authentication.rb
ey-core-3.2.5 lib/ey-core/token_authentication.rb
ey-core-3.2.4 lib/ey-core/token_authentication.rb
ey-core-3.2.3 lib/ey-core/token_authentication.rb
ey-core-3.2.2 lib/ey-core/token_authentication.rb
ey-core-3.2.1 lib/ey-core/token_authentication.rb
ey-core-3.2.0 lib/ey-core/token_authentication.rb