Sha256: 6cb5e4cced922ecf97bb1661d31251f394bbb204b3dd127e3f91db92200555a4
Contents?: true
Size: 696 Bytes
Versions: 7
Compression:
Stored size: 696 Bytes
Contents
require File.dirname(__FILE__) + "/../cli/setup" SparkApi.configure do |config| config.oauth2_provider = SparkApi::Authentication::OAuth2Impl::PasswordProvider.new( :authorization_uri=> ENV["AUTH_URI"], :access_uri => ENV["ACCESS_URI"], :username=> ENV["USERNAME"], :password=> ENV["PASSWORD"], :client_id=> ENV["CLIENT_ID"], :client_secret=> ENV["CLIENT_SECRET"] ) config.authentication_mode = SparkApi::Authentication::OAuth2 config.endpoint = ENV["API_ENDPOINT"] if ENV["API_ENDPOINT"] end
Version data entries
7 entries across 7 versions & 1 rubygems