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/models/user.rb | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 app/models/user.rb (limited to 'app/models/user.rb') diff --git a/app/models/user.rb b/app/models/user.rb new file mode 100644 index 0000000..f7e96a8 --- /dev/null +++ b/app/models/user.rb @@ -0,0 +1,4 @@ +class User < ApplicationRecord + has_many :agencies + has_many :agents, through: :agencies, source: :agent +end -- cgit v1.2.3