aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2020-10-06 13:02:13 +0200
committerhellekin <hellekin@cepheide.org>2020-10-06 13:02:13 +0200
commit0677edc62112f0297a91211d19ed318c85c49a1e (patch)
tree147eb55b7e4ce03467310f0760d78b0867bd9426 /config
parentb5c3e5b9ac9affb4cea8dc98cd9699cda04cb972 (diff)
downloadincommon-map-0677edc62112f0297a91211d19ed318c85c49a1e.tar.gz
Ensure SSO return host is correct in production
Diffstat (limited to 'config')
-rw-r--r--config/initializers/sso_config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/sso_config.rb b/config/initializers/sso_config.rb
index f5413ff..d88b595 100644
--- a/config/initializers/sso_config.rb
+++ b/config/initializers/sso_config.rb
@@ -13,6 +13,6 @@ require 'sso/from_discourse'
SSO::FromDiscourse.config = {
sso_url: 'https://talk.incommon.cc/session/sso_provider',
- return_url: "http://localhost:3000/authenticate",
+ return_url: Rails.env.production? ? "https://ateliers-carto.incommon.cc/authenticate" : "http://localhost:3000/authenticate",
sso_secret: Rails.application.credentials.sso_secret,
}