From b8bd769571241295bfe1ce2e9fd72b33efda0a76 Mon Sep 17 00:00:00 2001
From: clokep
Enable Central Authentication Service (CAS) for registration and login. Has the following sub-options:
enabled
: Set this to true to enable authorization against a CAS server.
-Defaults to false.idp_name
: A user-facing name for this identity provider, which is used to
-offer the user a choice of login mechanisms.idp_icon
: An optional icon for this identity provider, which is presented
+enabled
: Set this to true to enable authorization against a CAS server.
+Defaults to false.
idp_name
: A user-facing name for this identity provider, which is used to
+offer the user a choice of login mechanisms.
idp_icon
: An optional icon for this identity provider, which is presented
by clients and Synapse's own IdP picker page. If given, must be an
MXC URI of the format mxc://<server-name>/<media-id>
. (An easy way to
obtain such an MXC URI is to upload an image to an (unencrypted) room
-and then copy the "url" from the source of the event.)
idp_brand
: An optional brand for this identity provider, allowing clients
+and then copy the "url" from the source of the event.)
+idp_brand
: An optional brand for this identity provider, allowing clients
to style the login flow according to the identity provider in question.
-See the spec for possible options here.
server_url
: The URL of the CAS authorization endpoint.protocol_version
: The CAS protocol version, defaults to none (version 3 is required if you want to use "required_attributes").displayname_attribute
: The attribute of the CAS response to use as the display name.
-If no name is given here, no displayname will be set.required_attributes
: It is possible to configure Synapse to only allow logins if CAS attributes
+See the spec for possible options here.
+server_url
: The URL of the CAS authorization endpoint.
protocol_version
: The CAS protocol version, defaults to none (version 3 is required if you want to use "required_attributes").
displayname_attribute
: The attribute of the CAS response to use as the display name.
+If no name is given here, no displayname will be set.
required_attributes
: It is possible to configure Synapse to only allow logins if CAS attributes
match particular values. All of the keys given below must exist
and the values must match the given value. Alternately if the given value
is None
then any value is allowed (the attribute just must exist).
-All of the listed attributes must match for the login to be permitted.
enable_registration
: set to 'false' to disable automatic registration of new
+users. This allows the CAS SSO flow to be limited to sign in only, rather than
+automatically registering users that have a valid SSO login but do not have
+a pre-registered account. Defaults to true.
Added in Synapse 1.93.0.
+Example configuration:
cas_config:
@@ -3091,6 +3114,7 @@ All of the listed attributes must match for the login to be permitted.
required_attributes:
userGroup: "staff"
department: None
+ enable_registration: true
sso