Sha256: 454ba0c75bb4989bc569f856efa754f5ef9eb9cec8b593402326fffdd43ac9f9

Contents?: true

Size: 553 Bytes

Versions: 6

Compression:

Stored size: 553 Bytes

Contents

module InsightsCloud
  def self.base_url
    # for testing set ENV to 'https://ci.cloud.redhat.com'
    @base_url ||= ENV['SATELLITE_INSIGHTS_CLOUD_URL'] || 'https://cloud.redhat.com'
  end

  def self.authentication_url
    # https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
    @authentication_url ||= ENV['SATELLITE_INSIGHTS_CLOUD_SSO_URL'] || 'https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token'
  end

  def self.hits_export_url
    base_url + '/api/insights/v1/export/hits/'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman_rh_cloud-2.0.9 lib/insights_cloud.rb
foreman_rh_cloud-1.0.9 lib/insights_cloud.rb
foreman_rh_cloud-0.9.9 lib/insights_cloud.rb
foreman_rh_cloud-0.9.8 lib/insights_cloud.rb
foreman_rh_cloud-1.0.8 lib/insights_cloud.rb
foreman_rh_cloud-2.0.8 lib/insights_cloud.rb