I have a lobby room which uses external authentication. The user logs into the lobby and the logs into a newly created room (unique game room) using exactly the same external authentication process.
This all works great when I use localhost
But as soon as I use a different domain eg. www.games.local.net which points directly at localhost or even if I use a valid internet domain, an error occurs on the second authentication (the authentication into the lobby always works fine).
The only thing I can think of is that my room is being created on a different domain than the one I am trying to access it from - could this be the case. Would the oom instance store the creating domain information?
Views
Replies
Total Likes
The error I get is:
Error: error getting ticket: [Event type="error" bubbles=false cancelable=false eventPhase=2]
at com.adobe.rtc.session.managers::SessionManagerAdobeHostedServices/onTicketError()[C:\work\main\connect\cocomo\src\com\adobe\rtc\session\managers\SessionManagerAdobeHostedServices.as:106]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.adobe.rtc.session.sessionClasses::SingleUseTicketService/onComplete()[C:\work\main\connect\cocomo\src\com\adobe\rtc\session\sessionClasses\SingleUseTicketService.as:79]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
Please can someone help ... I am on the verge of making my application live and this is hurting me.
Views
Replies
Total Likes
I am not really sure I understand the domain thing, can you explain better how your application is organized ?
Also, please post or send us the debug messages you get in the console. Just knowing where you got the error is not helping much (the error at that line means the server returned an unexpected error code, the debug message would tell us what error code)
Also, if you could isolate the problem in a very simple test, we could try to reproduce it and figure out what's happening (but first thing, please send us the debug messages)
Views
Replies
Total Likes
Hi Raff
I get:
AFCS Beta Build # : 0.94
requestInfo
warning: unable to bind to property 'displayName' on class
'com.adobe.rtc.sharedManagers.descriptors::UserDescriptor' (class is not an
IEventDispatcher)
warning: unable to bind to property 'displayName' on class
'com.adobe.rtc.sharedManagers.descriptors::UserDescriptor' (class is not an
IEventDispatcher)
warning: unable to bind to property 'displayName' on class
'com.adobe.rtc.sharedManagers.descriptors::UserDescriptor' (class is not an
IEventDispatcher)
warning: unable to bind to property 'displayName' on class
'com.adobe.rtc.sharedManagers.descriptors::UserDescriptor' (class is not an
IEventDispatcher)
warning: unable to bind to property 'displayName' on class
'com.adobe.rtc.sharedManagers.descriptors::UserDescriptor' (class is not an
IEventDispatcher)
warning: unable to bind to property 'displayName' on class
'com.adobe.rtc.sharedManagers.descriptors::UserDescriptor' (class is not an
IEventDispatcher)
getMeetingInfo: status=0
#THROWING ERROR# onComplete status code not ok. Status:
Error: error getting ticket: [Event type="error" bubbles=false
cancelable=false eventPhase=2]
at
com.adobe.rtc.session.managers::SessionManagerAdobeHostedServices/onTicketError()[C:\work\main\connect\cocomo\src\com\adobe\rtc\session\managers\SessionManagerAdobeHostedServices.as:106]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
com.adobe.rtc.session.sessionClasses::SingleUseTicketService/onComplete()[C:\work\main\connect\cocomo\src\com\adobe\rtc\session\sessionClasses\SingleUseTicketService.as:79]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
Views
Replies
Total Likes
and here is one with the localhost that worked:
AFCS Beta Build # : 0.94
requestInfo http://connectnow.acrobat.com/happychess/5000003_5000004?exx=eDpvbGxpZTo6aGFwcHljaGVzczo1MDAwMDAzOjU...
getMeetingInfo: status=0
Getting FMS at https://na2.connectnow.acrobat.com/fms?ticket=11lqcr135phqa, attempt #1/3
result: <fms>
<origin>fms1.acrobat.com</origin>
<proto_ports>rtmps:443</proto_ports>
<retry_attempts>2</retry_attempts>
</fms>
#FMSConnector# Wed Nov 18 15:54:47 GMT+1100 2009 protocols: [object ProtocolPortPair]
#FMSConnector# Wed Nov 18 15:54:47 GMT+1100 2009 [attempt 1 of 2] Connecting to 0/0: rtmps://fms1.acrobat.com/cocomo/na2-sdk-929593b2-d177-448d-b61b-3dadc3ee57db/5000003_5000004 #startProtosConnect#
#FMSConnector# Wed Nov 18 15:54:48 GMT+1100 2009 tempNetStatusHandler 0/1,NetConnection.Connect.Success
#FMSConnector# Wed Nov 18 15:54:48 GMT+1100 2009 isTunneling? false
#FMSConnector# Wed Nov 18 15:54:48 GMT+1100 2009 is using RTMPS? true
RECEIVED LOGIN AT SESSION
.user descriptor from server [object]
\\
.displayName [string]= ollie
.userID [string]= EXT-HAPPYCHESS-5000003
.affiliation [number]= 100
.role [number]= 100
Views
Replies
Total Likes
Hi Raff
I have some more info for you.
I have spent the better part of the day trying out different scenarios and have found the following:
If i use http://localhost , the authentication occurs perfectly
If I change this to be http://www.happydaygames.local.net (pointing to 127.0.0.1) I get 'Bad authenticator'. I am using s_website = "http://" + URLUtil.getServerName(Application.application.loaderInfo.url); to get the caller for making the data request to the autheticating php script.
I will set it up my live server so you can have a look if you don't mind. I am really desperate to finally get my application up and running as it has taken me months to create and your help is appreciated.
Thanks
Views
Replies
Total Likes
Here is some more info about the return error. I get this even though I have set the role to 100., and as said before it works on localhost but not on www.happydaygames.local.net
<result code="unauthorized">
<baseURL href="https://na2.connectnow.acrobat.com:443/"/>
<authentication href="https://services.acrobat.com/account/wsapi/auth/v1"/>
</result>
Views
Replies
Total Likes
WHY DO YOU GUYS KEEP SENDING ME THINGS
Views
Replies
Total Likes
I fixed it.
I was incorrectly assigning $_SESSION["XSESSION"] to the xisting session and not creating a new session for the new room. This meant that I only authenticated once. The second time was blocked by the if condition on $_SESSION["XSESSION"].
Views
Replies
Total Likes