Hello,
I have an authentication failure on Postman.
Maybe it's the fault of my signature.
I created a Python code to generate the signature.
Here is the code:
----------------------------------------------------------------------------------
import hmac import hashlib import base64 import urllib import datetime
# Your VWS secret key vws_secret_key = "704ed8658cd2bfc566bcabb3e84511b55221dd23"
# The HTTP method of your request http_verb = "GET"
# The Content-MD5 of your request body content_md5 = "d41d8cd98f00b204e9800998ecf8427e"
# The Content-Type of your request content_type = "application/json"
# The current date and time date = datetime.datetime.utcnow().strftime("%a, %d %b %Y %H:%M:%S GMT")
# The path of your request request_path = " https://vws.vuforia.com/duplicates/bb6ac8156fe2498f863d49bc2592a3ff"
# Concatenate the elements of the StringToSign string_to_sign = http_verb + "\n" + content_md5 + "\n" + content_type + "\n" + date + "\n" + request_path
# Sign the StringToSign using the VWS secret key and the HMAC-SHA1 algorithm signature = hmac.new(vws_secret_key.encode(), string_to_sign.encode(), hashlib.sha1)
# Encode the signature in base64 vws_signature = base64.b64encode(signature.digest()).decode()
print(date) print(vws_signature)
-----------------------------------------------------------------------------------
Can you help me please ?
Thanks
Hey there,
Hey there,
I won't be able to review your code, but if you can share the failure transaction code, I can validate the logs with the team.
Kind regards,
Patrick Scheper
Vuforia Engine Product Manager