Expand my Community achievements bar.

bad authentication key

Avatar

Level 4

Hi,

Getting this error while trying to to use  authenticationKey

My URL is looking like this:

requestInfo http://connectnow.acrobat.com/goodcrush/dResidence2?exx=eDpyYWZmOjpnb29kY3J1c2g6eC1yYWZmOmRyZXNpZGVu...

It seems to be the same each time I test (should it change?)

Once logs in as authorized can they self demote their status?

thanks.

...russ

7 Replies

Avatar

Former Community Member

Hi,

Only users with owner roles can change user roles including himself. If you login with other roles, you can't do that.

For clarity, you can refer to the setUserRole function inside UserManager and its API documentation.

What are you doing while getting this authentication error ?

Thanks

Hironmay Basu

Avatar

Level 4

Hi,

I'm trying to login to a room.

Flash makes a call to ruby for the current user to get a key (passes over the room name).

Key comes back and is assigned to authenticationKey as a string.

Try to log in and it throws me an error "bad authentication key"

for the moment im giving my user owner ship level (100) just to see it work. then I can dial it back.

thanks.

...russ

Avatar

Employee

One thing that I see is that you are trying to access the room 'dResidence2' but the token is for 'dresidence2'. I think this shouldn't be a problem but I'll need to check the code tomorrow and make sure I am doing case insensitive checkings.

The other reason why the token may not work is that the session expired (i.e. your room started, then stopped then started again - that would make two sessions - and you are using a token generated for the first session). I'll have to check the logs tomorrow for that too.

Avatar

Level 4

Hey Raff.
Just checking in. Should I be sending the room name in all lower case?

Thanks.

...russ

Avatar

Employee

ah! It look like I am not lower-casing! Sigh!

I'll get that fixed for next release, in the mean time you should be using all lower-case for the room. Thanks!

Avatar

Level 4

Sweet!

I'll talk to my friends on the ruby side and see if they can fix that for me.

Let you know what happens.

thanks.

...russ

Avatar

Employee

Note that the "error" is in your room URL, not in the token generation (http://.../goodCrush/dResidence2) so you may be able to "fix" it client side too.