Add simpler option to specify default identity_provider.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2026-01-18 02:20:04 +00:00
parent 85ac256786
commit 98f5ea203b
4 changed files with 73 additions and 38 deletions

View File

@@ -1852,19 +1852,6 @@
#
#one_time_key_limit = 256
# This option is relevant when more than one identity_provider has been
# configured and `sso_custom_providers_page` is false. Set this option to
# the `client_id` of the provider to use for requests to
# `/_matrix/client/v3/login/sso/redirect` (the url lacks a `client_id`).
#
# This *must* be configured for some clients (e.g. fluffychat) to work
# properly when the above conditions require it.
#
# When only one identity_provider is configured that will be used as the
# default and this does not have to be set.
#
#sso_default_provider_id = false
# Setting this option to true replaces the list of identity providers on
# the client's login screen with a single button "Sign in with single
# sign-on" linking to the URL `/_matrix/client/v3/login/sso/redirect`. The
@@ -2190,6 +2177,20 @@
#
#callback_url =
# When more than one identity_provider has been configured and
# `sso_custom_providers_page` is false this will determine the results
# for the `/_matrix/client/v3/login/sso/redirect` endpoint (note the url
# lacks a trailing `client_id`).
#
# When only one identity_provider is configured it will be interpreted
# as the default and this does not have to be set. Otherwise a default
# *must* be selected for some clients (e.g. fluffychat) to work properly
# when the above conditions require it. For compatibility if not set a
# warning will be logged on startup and the first provider listed will be
# considered the default.
#
#default = false
# Optional display-name for this provider instance seen on the login page
# by users. It defaults to `brand`. When configuring multiple providers
# using the same `brand` this can be set to distinguish them.