diff options
author | hellekin <hellekin@cepheide.org> | 2020-10-05 21:51:37 +0200 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2020-10-05 21:51:37 +0200 |
commit | 48031dde29d6dc4a0ba84c445ae4c07627257d4a (patch) | |
tree | fdbe4b896b04ad9e39ebb0b73516b77b61330dd2 /app/lib | |
parent | 81fb71f0510a5464634a65d97939f6fa54f419dd (diff) | |
download | incommon-map-48031dde29d6dc4a0ba84c445ae4c07627257d4a.tar.gz |
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
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/sso.rb | 2 | ||||
-rw-r--r-- | app/lib/sso/from_discourse.rb | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/app/lib/sso.rb b/app/lib/sso.rb index ace2830..0939a7c 100644 --- a/app/lib/sso.rb +++ b/app/lib/sso.rb @@ -5,3 +5,5 @@ module SSO require 'securerandom' require_relative '../../config/initializers/sso_config' end + + 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 |