Sha256: 3bd085ea2de4a3daa42b9461e71d9789c05cb504e5c5565827fa824e06d49373

Contents?: true

Size: 702 Bytes

Versions: 6

Compression:

Stored size: 702 Bytes

Contents

require File.dirname(__FILE__) + "/../cli/setup"

FlexmlsApi.configure do |config|
  config.oauth2_provider = FlexmlsApi::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 = FlexmlsApi::Authentication::OAuth2
  config.endpoint = ENV["API_ENDPOINT"] if ENV["API_ENDPOINT"]
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
spark_api-1.0.2 lib/spark_api/cli/oauth2.rb~
spark_api-1.0.1 lib/spark_api/cli/oauth2.rb~
spark_api-1.0.0 lib/spark_api/cli/oauth2.rb~
flexmls_api-0.7.3 lib/flexmls_api/cli/oauth2.rb
flexmls_api-0.7.5 lib/flexmls_api/cli/oauth2.rb
flexmls_api-0.7.0 lib/flexmls_api/cli/oauth2.rb