Get a cryptographic key
A cryptographic nonce (number used once) key is a server-specified data string that is generated each time a 401 response is made. The server returns the data string to the client, and the client then passes that string unchanged back to the server with its subsequent request. Cryptographic keys prevent unauthorized access to data and protect against replay attacks. See RFC 2617 for more information about these keys.
About this task
To get a cryptographic key...
Procedure
- Request a key from the Files server using the following URI:
<files_server>/basic/api/nonceThis creates an HTTP request that looks like this:
GET /files/basic/api/nonce HTTP/1.1 Authorization: Basic xxx Host: enterprise.example.com:9087 Accept: */*
- From the HTTP response, find the key value, which is a data string that looks like this:
76FG092D5B5E14071F6FFA280D199900017F
- Pass that data string back to the server with your subsequent request as the value of the X-Update-Nonce parameter.
Parent topic
Work with filesRelated reference
Add a file using a multipart POST
Update file metadata using a multipart PUT
});