Document responsibility for server-side id. #276 (#277)

* Document responsibility for server-side id. #276

This is a passive warning to the server implementor
to not blindly trust the client to send the same
identifier in both [RegistrationRequest] and [RegistrationUpload].

* Perform suggested copy-editing

* Update src/lib.rs

Add wording "typically supplied by the client"

Co-authored-by: daxpedda <[email protected]>

Co-authored-by: Jonah Beckford <[email protected]>
Co-authored-by: daxpedda <[email protected]>
This commit is contained in:
jonahbeckford
2022-06-24 16:31:11 -07:00
committed by GitHub
co-authored by daxpedda Jonah Beckford
parent 5a0aef607c
commit e08ee1925c
+3
View File
@@ -89,6 +89,9 @@
//! key-value database, where the keys consist of these server-side identifiers
//! for each client, and the values consist of their corresponding password
//! files, to be retrieved upon future login attempts made by the client.
//! It is your responsibility to ensure that the identifier used to form the
//! initial [RegistrationRequest], typically supplied by the client, matches
//! the database key used in the final [RegistrationUpload] step.
//!
//! Note that the [RegistrationUpload] message contains sensitive information
//! (about as sensitive as a hash of the password), and hence should be