aboutsummaryrefslogtreecommitdiff
path: root/config/initializers
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2020-10-05 14:39:03 +0200
committerhellekin <hellekin@cepheide.org>2020-10-05 14:39:03 +0200
commit1d53b3c26f4167be4e19e508c96a617d79c67363 (patch)
treea8eacd792ef620e013ca46dec3d890286b944f68 /config/initializers
parent270620682c1a3c006af4f9d15f9be58537d4d9ee (diff)
downloadincommon-map-1d53b3c26f4167be4e19e508c96a617d79c67363.tar.gz
Add Discourse SSO code
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/sso_config.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/config/initializers/sso_config.rb b/config/initializers/sso_config.rb
new file mode 100644
index 0000000..b3f23f7
--- /dev/null
+++ b/config/initializers/sso_config.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+
+# See lib/sso/from_discourse.rb
+# module SSO
+# class FromDiscourse
+# class << self
+# attr_accessor :config
+# end
+# end
+# end
+
+SSO::FromDiscourse.config = {
+ sso_url: 'https://talk.incommon.cc/session/sso_provider',
+ return_url: "http://localhost:3000/authenticate",
+ sso_secret: Rails.application.credentials.sso_secret,
+}