summaryrefslogtreecommitdiff
path: root/wsd/ProofKey.hpp
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2020-02-14 21:01:06 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2020-02-18 17:30:19 +0100
commit99f04804600f2153ce245b3937c9fcaddc3d9a9a (patch)
tree50985a9858f73e181e0caa75881bbe3e79952d0d /wsd/ProofKey.hpp
parent25a1d35467e0f13f2a801906640c9f39c8e4af84 (diff)
Proof: URI must be absolute and converted to uppercase
Also access token is already passes decoded to GetProofHeaders, so don't decode it second time. Change-Id: I7c4404462a9dd9f53e4e82684b1fcae1aeecee73 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88736 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'wsd/ProofKey.hpp')
-rw-r--r--wsd/ProofKey.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/wsd/ProofKey.hpp b/wsd/ProofKey.hpp
index e1d4b63a3..f02403db1 100644
--- a/wsd/ProofKey.hpp
+++ b/wsd/ProofKey.hpp
@@ -21,6 +21,7 @@ typedef std::vector<std::pair<std::string, std::string>> VecOfStringPairs;
// The headers returned are X-WOPI-TimeStamp, X-WOPI-Proof
// If no proof key, returns empty vector
// Both parameters are utf-8-encoded strings
+// access_token must not be URI-encoded
VecOfStringPairs GetProofHeaders(const std::string& access_token, const std::string& uri);
// Returns pairs <attribute, value> to set in proof-key element in discovery xml.