Avatar

Level 4

ok, so i broke this down to real basic. i noticed that the authKey i was getting was always identical. not a surprise, the backend php vars were always hard coded like this:

$secret = [OUR_GENERATED_SECRET];

$fullname = "Bingo Bango";
$id = 123;
$role = 100;

return $session->getAuthenticationToken($secret,$fullname,$id,$role);

meaning the authToken was always:

exx=eDpCaW5nbyBCYW5nbzo6c2VxdW95YTI6MTIzOnRlc3RpbmcxMjM6MTAwOmM4NjYwMmZmN2UyYzUyZmVhNWVmN2Q0ZjBiZjNhNjU2MjE1Nzg1NTY=

so, i figured, ok, im just gonna make a REAL simple app, with a coupla hardcoded MXML tags. i made a WindowedApplication thus:

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:local="*">
   
    <local:CocomoAuthTestContainer />
   
</mx:WindowedApplication>

and then the 'local:CocomoAuthTestContainer' component, thus:

<?xml version="1.0" encoding="utf-8"?>
<session:ConnectSessionContainer
    xmlns:session="com.adobe.rtc.session.*"
    xmlns:authentication="com.adobe.rtc.authentication.*"
    authenticator="{auth}"
    roomURL="http://connectnow.acrobat.com/sequoya2/testing123"
    >
   
    <authentication:AdobeHSAuthenticator

        id="auth"

        authenticationKey="exx=eDpCaW5nbyBCYW5nbzo6c2VxdW95YTI6MTIzOnRlc3RpbmcxMjM6MTAwOjFkODcwZWMzZjY1Y2YzNzA1YWUyMjMxOGY0YThhZGFkN2I4Mjg3MDc="
        />
   
</session:ConnectSessionContainer>

but again it broke, same way:

[SWF] CocomoAuthTest.swf - 1,228,539 bytes after decompression
AFCS Beta Build # : 0.92
requestInfo http://connectnow.acrobat.com/sequoya2/testing123?exx=eDpCaW5nbyBCYW5nbzo6c2VxdW95YTI6MTIzOnRlc3Rpbm...
#THROWING ERROR# bad authentication key
Error: Invalid username or password:Login again

not a conclusive test, but looking at this (ie: completely removed from the rest of the application) i feel pretty confident that i'm not doing anything wrong, nor that there's something wrong with the room, cos i also tried it thus:

<?xml version="1.0" encoding="utf-8"?>
<session:ConnectSessionContainer
    xmlns:session="com.adobe.rtc.session.*"
    xmlns:authentication="com.adobe.rtc.authentication.*"
    authenticator="{auth}"
    roomURL="http://connectnow.acrobat.com/sequoya2/testing123"
    >
   
    <authentication:AdobeHSAuthenticator id="auth"
        userName="[MY_ADOBE_EMAIL_ADDRESS]"
        password="[MY_ADOBE_PASSWORD]"
        />
       
</session:ConnectSessionContainer>

and it was fine.

im going to try ONE MORE THING before giving it a rest for the day, cos im more or less out of ideas and its just getting depressing now.