Sha256: 42f0e7f30e652490ed709a02554baf86ac6585bbc81223f58b2d56af07494098

Contents?: true

Size: 573 Bytes

Versions: 5

Compression:

Stored size: 573 Bytes

Contents

module Fairdom
  module OpenbisApi
    class Authentication < OpenbisQuery
      attr_reader :as_endpoint, :username, :password

      def initialize(username, password, as_endpoint)
        @username = username
        @password = password
        @as_endpoint = as_endpoint
      end

      def login
        execute []
      end

      def execute_command(_options)
        java_root_command
      end

      def root_command_options
        " -account {%username%:%#{username}%\,%password%:%#{password}%} -endpoints {%as%:%#{as_endpoint}%}"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
openseek-api-0.17.1 lib/fairdom/openbis_api/authentication.rb
openseek-api-0.11.1 lib/fairdom/openbis_api/authentication.rb
openseek-api-0.11.0 lib/fairdom/openbis_api/authentication.rb
openseek-api-0.9.2 lib/fairdom/openbis_api/authentication.rb
openseek-api-0.9.1 lib/fairdom/openbis_api/authentication.rb