lib/generators/templates/omniauth.rb in dailycred-0.1.2 vs lib/generators/templates/omniauth.rb in dailycred-0.1.4

- old
+ new

@@ -1,20 +1,9 @@ Rails.configuration.DAILYCRED_CLIENT_ID = "<%= client_id %>" 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 => {} } - -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') - dc_options[:client_options][:ssl] = { :ca_file => '/opt/local/share/curl/curl-ca-bundle.crt' } -end - -Rails.application.config.middleware.use OmniAuth::Builder do - provider :dailycred, dc_id, dc_secret, dc_options -end - -Rails.application.config.middleware.use "Dailycred::Middleware", dc_id \ No newline at end of file +# configure where users should be redirected after authentication +# +# Rails.configuration.DAILYCRED_OPTIONS = { +# :after_auth => '/hello', #after login +# :after_unauth => '/goodbye' #after logout +# }