Skip to content

Commit

Permalink
impr: Clarify comment on (sometimes) optional SSO config values
Browse files Browse the repository at this point in the history
  • Loading branch information
pizkaz committed Nov 27, 2024
1 parent a38b58c commit b506406
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion synapse/config/sso.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ class SsoAttributeRequirement:
"""Object describing a single requirement for SSO attributes."""

attribute: str
# If a value is not given, than the attribute must simply exist.
# 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.
value: Optional[str] = None
one_of: Optional[List[str]] = None

Expand Down

0 comments on commit b506406

Please sign in to comment.