lib/omniauth/strategies/cmply.rb in omniauth-cmply-0.0.9 vs lib/omniauth/strategies/cmply.rb in omniauth-cmply-0.0.10

- old
+ new

@@ -3,10 +3,13 @@ module OmniAuth module Strategies class Cmply < OmniAuth::Strategies::OAuth2 option :name, 'cmply' - option :client_options, {:authorize_path => '/oauth/authorize',:site => 'https://api.cmp.ly'} + option :client_options, { + :authorize_path => '/oauth/authorize', + :site => ENV["RACK_ENV"].eql?("development") ? 'http://api.cmply.local:8800' : 'https://api.cmp.ly' + } #uid { access_token.params[:user_id] } uid { raw_info['_id'] } info do