Don't require servers/clients to support "none"

This commit is contained in:
Andrew Morgan 2019-07-23 16:43:55 +01:00
parent 3031df79cc
commit 3b8c57e06c

View file

@ -134,10 +134,11 @@ negotiated by the client and server at their discretion.
There are certain situations when an identity server cannot be expected to
compare hashed 3PID values; for example, when a server is connected to a
backend provider such as LDAP, it is not efficient for the identity server to
pull all of the addresses and hash them on lookup. For this case, clients
and server MUST also support sending plain-text 3PID values. To agree upon
this, the `"algorithms"` field of `GET /hash_details` MUST contain the value
`"none"`.
pull all of the addresses and hash them upon lookup. For this case, can also
support receiving plain-text 3PID addresses from clients. To agree upon this,
the value `"none"` can be added to the `"algorithms"` array of `GET
/hash_details`. The client can then choose to send plain-text values by
setting the `"algorithm"` value in `POST /lookup` to `"none"`.
No hashing will be performed if the client and server decide on `"none"`, and
3PIDs will be sent in plain-text, similar to the v1 `/lookup` API. When this