# CollaborationAuthentication
Class
## About
`CollaborationAuthentication` verifies the single-use HMAC-SHA256 proofs used by the collaboration nonce challenge. The password hash is a pre-shared verifier supplied and stored by application code; it is never transmitted by the collaboration protocol.
## Shared Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| VerifyProof | passwordHash As String <br> nonce As String <br> challengeID As String <br> userName As String <br> clientProof As String <br> documentID As String = "" | Boolean | Verifies a collaboration challenge proof using the application's stored password hash. |
## Notes
### Password Hashes
The application chooses how credentials are collected, hashed, stored, rotated, and retrieved. Supply the same precomputed password hash to `Network.Client.Authenticate` and `VerifyProof`. Do not supply a plaintext password. Transport security such as TLS remains the application's responsibility.
### Proof Binding
A proof is bound to the collaboration protocol version, challenge ID, random nonce, normalized user name, and optional document ID. Consequently, a proof created for connection authentication cannot be replayed to open a document, and a proof for one document cannot open another.
## Examples
### Verify a Proof
```xojo
Var valid As Boolean = GraffitiProEditor.CollaborationAuthentication.VerifyProof(passwordHash, nonce, challengeID, userName, clientProof, documentID)
If Not valid Then Return GraffitiProEditor.CollaborationAccess.None
```