lib/generators/templates/omniauth.rb in dailycred-0.1.21 vs lib/generators/templates/omniauth.rb in dailycred-0.1.22
- old
+ new
@@ -2,10 +2,14 @@
Rails.configuration.DAILYCRED_SECRET_KEY = "<%= secret_key %>"
dc_id = Rails.configuration.DAILYCRED_CLIENT_ID
dc_secret = Rails.configuration.DAILYCRED_SECRET_KEY
-dc_options = { :client_options => {} }
+dc_options = { :client_options => {
+ :site => "http://localhost:9000",
+ :authorize_url => '/oauth/authorize',
+ :token_url => '/oauth/access_token'
+ } }
if File.exists?('/etc/ssl/certs')
dc_options[:client_options][:ssl] = { :ca_path => '/etc/ssl/certs'}
end
if File.exists?('/opt/local/share/curl/curl-ca-bundle.crt')
\ No newline at end of file