Sha256: e010563409b7f6a9b4f9bdd1fbbefa8c5717431af95b9fde21a7cde561489ee3

Contents?: true

Size: 501 Bytes

Versions: 5

Compression:

Stored size: 501 Bytes

Contents

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

        def initialize(username: ENV['CORE_KEY'], password: ENV['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

5 entries across 5 versions & 1 rubygems

Version Path
roqua-core-api-0.0.16 lib/roqua/core_api/sessions/basic_auth_session.rb
roqua-core-api-0.0.15 lib/roqua/core_api/sessions/basic_auth_session.rb
roqua-core-api-0.0.14 lib/roqua/core_api/sessions/basic_auth_session.rb
roqua-core-api-0.0.13 lib/roqua/core_api/sessions/basic_auth_session.rb
roqua-core-api-0.0.12 lib/roqua/core_api/sessions/basic_auth_session.rb