mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: support SSO website and location overrides
Add location and website + the ability to override using SSO using the `sso_overrides_location` and `sso_overrides_website` site settings.
This commit is contained in:
@@ -33,6 +33,7 @@ describe DiscourseSingleSignOn do
|
||||
sso.custom_fields["a"] = "Aa"
|
||||
sso.custom_fields["b.b"] = "B.b"
|
||||
sso.website = "https://www.discourse.org/"
|
||||
sso.location = "Home"
|
||||
sso
|
||||
end
|
||||
|
||||
@@ -53,6 +54,7 @@ describe DiscourseSingleSignOn do
|
||||
expect(parsed.custom_fields["a"]).to eq "Aa"
|
||||
expect(parsed.custom_fields["b.b"]).to eq "B.b"
|
||||
expect(parsed.website).to eq sso.website
|
||||
expect(parsed.location).to eq sso.location
|
||||
end
|
||||
|
||||
it "can do round trip parsing correctly" do
|
||||
|
||||
Reference in New Issue
Block a user