diff --git a/README.md b/README.md index 3c39b91..891c10e 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ Rails.application.config.middleware.use OmniAuth::Builder do provider :clever, ENV['CLEVER_CLIENT_ID'], ENV['CLEVER_CLIENT_SECRET'], :setup => lambda { |env| params = Rack::Utils.parse_query(env['QUERY_STRING']) - env['omniauth.strategy'].options[:client_options][:district_id] = params['district_id'] + env['omniauth.strategy'].options[:authorize_params][:district_id] = params['district_id'] } end ``` diff --git a/omniauth-clever.gemspec b/omniauth-clever.gemspec index 9e58e26..f1a0ad1 100644 --- a/omniauth-clever.gemspec +++ b/omniauth-clever.gemspec @@ -21,5 +21,5 @@ Gem::Specification.new do |gem| gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) gem.require_paths = ["lib"] - gem.add_runtime_dependency 'omniauth-oauth2', '~> 1.1.1' + gem.add_runtime_dependency 'omniauth-oauth2', '> 1.1.1' end