Sha256: fbcfa9091736be1cfd8d2d2cae2b1a6b42fccebd67b6a986dc9b1f2f7a7cb322

Contents?: true

Size: 513 Bytes

Versions: 2

Compression:

Stored size: 513 Bytes

Contents

module Roqua
  module CoreApi
    module Sessions
      class BasicAuthSession < AuthSession
        attr_reader :username
        attr_reader :password

        def initialize(username: ENV.fetch('CORE_KEY'), password: ENV.fetch('CORE_SECRET'), **additional_arguments)
          @username = username
          @password = password
          super additional_arguments
        end

        private

        def basic_auth
          {username: username, password: password}
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
roqua-core-api-0.0.18 lib/roqua/core_api/sessions/basic_auth_session.rb
roqua-core-api-0.0.17 lib/roqua/core_api/sessions/basic_auth_session.rb