From 0677edc62112f0297a91211d19ed318c85c49a1e Mon Sep 17 00:00:00 2001 From: hellekin Date: Tue, 6 Oct 2020 13:02:13 +0200 Subject: Ensure SSO return host is correct in production --- config/initializers/sso_config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, } -- cgit v1.2.3