summary refs log tree commit diff
path: root/synapse/config/sso.py
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2025-05-19 17:50:02 +0100
committerGitHub <noreply@github.com>2025-05-19 17:50:02 +0100
commit1f4ae2f9eb94808f651b683b4650092015ec39e1 (patch)
treecd2b7aa1d5e87e11ac6977a42e3c06b8f76f559a /synapse/config/sso.py
parentBump docker/build-push-action from 6.16.0 to 6.17.0 (#18449) (diff)
downloadsynapse-1f4ae2f9eb94808f651b683b4650092015ec39e1.tar.xz
Allow only requiring a field be present in an SSO response, rather than specifying a required value (#18454)
Diffstat (limited to 'synapse/config/sso.py')
-rw-r--r--synapse/config/sso.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/synapse/config/sso.py b/synapse/config/sso.py

index 97b85e47ea..cf27a7ee13 100644 --- a/synapse/config/sso.py +++ b/synapse/config/sso.py
@@ -43,8 +43,7 @@ class SsoAttributeRequirement: """Object describing a single requirement for SSO attributes.""" attribute: str - # If neither value nor one_of is given, the attribute must simply exist. This is - # only true for CAS configs which use a different JSON schema than the one below. + # If neither `value` nor `one_of` is given, the attribute must simply exist. value: Optional[str] = None one_of: Optional[List[str]] = None @@ -56,10 +55,6 @@ class SsoAttributeRequirement: "one_of": {"type": "array", "items": {"type": "string"}}, }, "required": ["attribute"], - "oneOf": [ - {"required": ["value"]}, - {"required": ["one_of"]}, - ], }