Sha256: 372adae7a04152a67971338b8f6dff44191497de04d942125e09c0c674db3b75

Contents?: true

Size: 742 Bytes

Versions: 2

Compression:

Stored size: 742 Bytes

Contents

module Credentials
  module_function

  def v1_creds
    {
      client_id: ENV['CLIENT_ID'],
      client_secret: ENV['CLIENT_SECRET'],
      domain: ENV['DOMAIN'],
      api_version: 1
    }
  end

  def v1_global_creds
    {
      client_id: ENV['GLOBAL_CLIENT_ID'],
      client_secret: ENV['GLOBAL_CLIENT_SECRET'],
      domain: ENV['DOMAIN'],
      api_version: 1
    }
  end

  def v2_creds
    {
      client_id: ENV['CLIENT_ID'],
      client_secret: ENV['CLIENT_SECRET'],
      token: ENV['MASTER_JWT'],
      domain: ENV['DOMAIN']
    }
  end

  def v2_creds_with_secret
    {
      client_id: ENV['CLIENT_ID'],
      client_secret: ENV['CLIENT_SECRET'],
      token: ENV['MASTER_JWT'],
      domain: ENV['DOMAIN']
    }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
auth0-4.7.0 spec/support/credentials.rb
auth0-4.6.0 spec/support/credentials.rb