Sha256: 799d6bf90327b2ad1cf1848a8d318cf600bac188e5d983c16f2c21aaaa3348cc

Contents?: true

Size: 654 Bytes

Versions: 11

Compression:

Stored size: 654 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
    {
      domain: ENV.fetch( 'DOMAIN', 'DOMAIN' ),
      client_id: ENV.fetch( 'CLIENT_ID', 'CLIENT_ID' ),
      client_secret: ENV.fetch( 'CLIENT_SECRET', 'TEST_CLIENT_SECRET' ),
      token: ENV.fetch( 'MASTER_JWT', 'TEST_MASTER_JWT' )
    }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
auth0-4.17.1 spec/support/credentials.rb
auth0-4.17.0 spec/support/credentials.rb
auth0-4.16.0 spec/support/credentials.rb
auth0-4.15.0 spec/support/credentials.rb
auth0-4.14.0 spec/support/credentials.rb
auth0-4.13.0 spec/support/credentials.rb
auth0-4.12.0 spec/support/credentials.rb
auth0-4.11.0 spec/support/credentials.rb
auth0-4.10.0 spec/support/credentials.rb
auth0-4.9.0 spec/support/credentials.rb
auth0-4.8.0 spec/support/credentials.rb