aboutsummaryrefslogtreecommitdiff
path: root/config/initializers/sso_config.rb
blob: cf3bf3f942bf30c22860a303d73a045ac48cfb1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# SPDX-FileCopyrightText: 2018-2020 IN COMMON Collective <collective@incommon.cc>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

# frozen_string_literal: true

# See lib/sso/from_discourse.rb
# module SSO
#   class FromDiscourse
#     class << self
#       attr_accessor :config
#     end
#   end
# end

require 'sso/from_discourse'

SSO::FromDiscourse.config = {
  sso_url: 'https://talk.incommon.cc/session/sso_provider',
  return_url: Rails.env.production? ? "https://ateliers-carto.incommon.cc/authenticate" : "http://localhost:3000/authenticate",
  sso_secret: Rails.application.credentials.sso_secret,
}