add omniauth.rb.example
authorTom Clegg <tom@clinicalfuture.com>
Wed, 23 Jan 2013 17:37:38 +0000 (09:37 -0800)
committerTom Clegg <tom@clinicalfuture.com>
Wed, 23 Jan 2013 17:37:38 +0000 (09:37 -0800)
config/initializers/omniauth.rb.example [new file with mode: 0644]

diff --git a/config/initializers/omniauth.rb.example b/config/initializers/omniauth.rb.example
new file mode 100644 (file)
index 0000000..b75a76e
--- /dev/null
@@ -0,0 +1,11 @@
+# Change this omniauth configuration to point to your registered provider
+# Since this is a registered application, add the app id and secret here
+APP_ID = 'orvos-server'
+APP_SECRET = rand(2**512).to_s(36) # CHANGE ME!
+
+# Update your custom Omniauth provider URL here
+CUSTOM_PROVIDER_URL = 'http://auth.clinicalfuture.com'
+
+Rails.application.config.middleware.use OmniAuth::Builder do
+  provider :josh_id, APP_ID, APP_SECRET
+end