Log in or register to post comments

The infamous AuthenticationFailure

December 4, 2013 - 1:14pm #1

Hello, I am creating a server written in CoffeeScript for NodeJS and I can't get anything but AuthenticationFailure

I've pasted the code here http://pastebin.com/f7JDmPNW

My keys are located in ./config.js file

I only use server_access_key and server_secret_key


The big problem is that you don't know if you're doing something right, or something wrong or everything wrong because there are so many hashes you need to compute and unless the planets align you're pretty much screwed, no way to debug, no way to find out.

I wish you good luck in finding out my bug (or most likely my bugs). And by "you" I mean the developers at vuforia who thought having lots of security will help and that one hash key was not enough.

The infamous AuthenticationFailure

April 17, 2014 - 9:15am #8

at the moment trying to integrate\port vws samples into unity. ive writed tests showing that ouput separately are similar but still got the AuthenticationFailure error (:facepalm:) .currently java samples didnt proceeds cause of some android.os.NetworkOnMainThreadException errors besides that linking problems with old\new versions of org.common.codec and .io libraries. just want to ask someone who has java or php working vws example for PostNewTarget procedure paste their output for this input in this thread

access key "a311633cc0e6db6b99836ed1f9f8171c02627ab6"

secret key "fc0f18587aabc4de39680746d9ffff5a659835c3"


(in attach to this post,for test purposes little one

target name "36a40501ef6ecbf4f4098dccc341d54024d0fcda_4/17/2014 4:00:11 PM" 

width 55.0

active_flag 1

metadata "Vuforia test metadata"

Date "Thu, 17 Apr 2014 20:00:11 GMT"

(need to be hardcoded not take current)

my output is here if someone interested http://pastebin.com/mSm1Gq4B

that would help a lot to finish task. i will attach .unipackage as soon as i finish it in this topic for the public access

Image icon c.png4.52 KB

The infamous AuthenticationFailure

April 14, 2014 - 2:57am #7

here is the bitbuket unity project with vuforia extension for saving and posting userdefined targets to cloud at runtime https://bitbucket.org/anonymousyourass/userdefinedcloud/overview. Currently its only saves picture locally and tries to post image to cloud to the testing develoment account. take picture feature works only second time and posting returns always No authentication challenges found. everyone who want to collaborate are welcome  version of unity 4.3.1f1


The infamous AuthenticationFailure

March 27, 2014 - 5:48am #6

For anyone else having this issue, my problem was that I wasn't explicity setting the Date header in the request.  I still can't find anywhere in the docs that you need to explicity set the Date header.  I can only find where it says you need to include it in the hashed authorization string.

The infamous AuthenticationFailure

March 26, 2014 - 2:13pm #5

I know this is an old post but I'm dealing with this same issue.  Would you be able post a JSFiddle of how you got it to work.

The infamous AuthenticationFailure

December 5, 2013 - 2:00am #4

I got it to work, it was indeed the hmac hash not being treated correctly and the Date header was missing. I saw that in some cases you post Fail, but if the Date header is missing there's no information that points to the problem.


The infamous AuthenticationFailure

December 5, 2013 - 12:13am #3

Thanks for the links. 

I must say yesterday the link to the PHP sample did not work. The EULA did not load so maybe the accept button was blocked.

Now I see that you consider the HMAC hash not as a hex string but as a binary. I'll start working from there.

The infamous AuthenticationFailure

December 5, 2013 - 12:03am #2

Hi, thanks for sharing your code, but as you recognize, these are "your bugs", we cannot debug your own code for you;

we do have working sample implementations in Java and PHP, which you can find here, if you want to have a look at the code, this could help:




Log in or register to post comments