Forum QuickConnect setting up authentication

Discussion and help relating to PlayerIO's QuickConnect feature, including Facebook Connect and Kongregate Connect.

setting up authentication

Postby lyngoheather » January 15th, 2015, 3:07 pm

I have been trying to set up a new connection for my game using basic authentication. This connection will be used to allow users from another website to login to the game as described in the documentation here: ... tion/basic

I have set up the connection with "Authentication: Basic" and I have checked the box that says "Require Authentication" and provided a secret key. On my server I have some code that generates the auth hash and passes it into my flash movie.

I use the following code in Flash to call the authenticate method:

Code: Select all
               { userId: MY_USER_ID, auth: MY_AUTH},

(The MY_AUTH variable above contains the auth hash passed from my server).

Whenever I try to connect using this method I get the following error:

Error: An unexpected error occurred inside the Player.IO webservice. Please try again. - Reference code: 21ff3dcb

The Reference code that is generated is usually different each time the error occurs.

I assume that my auth hash is being generated correctly on my server because if I send an incorrect value (such as "xxxx") I get the following error instead:

Error: Basic Authentication: The given 'auth' string was invalid

Can anybody point out what I might be doing wrong here?
Posts: 11
Joined: June 28th, 2010, 9:58 pm

Re: setting up authentication

Postby Henrik » January 28th, 2015, 5:53 pm

Sorry about this bug, it should be fixed now.
Posts: 1852
Joined: January 4th, 2010, 1:53 pm

Return to QuickConnect