Sha256: cc5598cdd492ef03c09d2ae2964013128e03d1e02f93406bb9ed6a1b0fa1bf21

Contents?: true

Size: 511 Bytes

Versions: 18

Compression:

Stored size: 511 Bytes

Contents

module Conjur
  module Authz
    class API < Conjur::API
      class << self
        def host
          ENV['CONJUR_AUTHZ_URL'] || default_host
        end
        
        def default_host
          case Conjur.env
          when 'test', 'development'
            "http://localhost:#{Conjur.service_base_port + 100}"
          else
            "https://authz-#{Conjur.stack}-conjur.herokuapp.com"
          end
        end
      end
    end
  end
end

require 'conjur/api/roles'
require 'conjur/api/resources'

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
conjur-api-2.7.1 lib/conjur/authz-api.rb
conjur-api-2.5.1 lib/conjur/authz-api.rb
conjur-api-2.4.0 lib/conjur/authz-api.rb
conjur-api-2.3.1 lib/conjur/authz-api.rb
conjur-api-2.2.3 lib/conjur/authz-api.rb
conjur-api-2.2.2 lib/conjur/authz-api.rb
conjur-api-2.2.1 lib/conjur/authz-api.rb
conjur-api-2.1.8 lib/conjur/authz-api.rb
conjur-api-2.1.7 lib/conjur/authz-api.rb
conjur-api-2.1.6 lib/conjur/authz-api.rb
conjur-api-2.1.5 lib/conjur/authz-api.rb
conjur-api-2.1.4 lib/conjur/authz-api.rb
conjur-api-2.1.3 lib/conjur/authz-api.rb
conjur-api-2.1.2 lib/conjur/authz-api.rb
conjur-api-2.1.1 lib/conjur/authz-api.rb
conjur-api-2.1.0 lib/conjur/authz-api.rb
conjur-api-2.0.1 lib/conjur/authz-api.rb
conjur-api-2.0.0 lib/conjur/authz-api.rb