From 48031dde29d6dc4a0ba84c445ae4c07627257d4a Mon Sep 17 00:00:00 2001 From: hellekin Date: Mon, 5 Oct 2020 21:51:37 +0200 Subject: Configure Discourse SSO We're creating a minimal User model that will be filled from SSO. We also configure Inflections so we can use SSO instead of Sso which looks weird for a module named after an acronym. Use Discourse as SSO: https://meta.discourse.org/t/using-discourse-as-a-sso-provider/32974 --- app/lib/sso/from_discourse.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/lib/sso') diff --git a/app/lib/sso/from_discourse.rb b/app/lib/sso/from_discourse.rb index 66742e2..a5df192 100644 --- a/app/lib/sso/from_discourse.rb +++ b/app/lib/sso/from_discourse.rb @@ -2,7 +2,8 @@ module SSO class FromDiscourse - attr_accessor :nonce, :token, :user_info, :status + attr_accessor :nonce, :token + attr_reader :request_uri, :user_info, :status class << self # See config/initializers/sso.rb -- cgit v1.2.3