Hello all,
I have a php backend that gets the token for ACFS, when I try and login with the token I get an error:
#THROWING ERROR# bad authentication key
Error: Invalid username or password:Login again
at com.adobe.rtc.authentication::AbstractAuthenticator/onLoginFailure()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\authentication\AbstractAuthenticator.as:182]
at com.adobe.rtc.authentication::AbstractAuthenticator/onAuthorizationFailure()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\authentication\AbstractAuthenticator.as:197]
at com.adobe.rtc.session.sessionClasses::MeetingInfoService/onComplete()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\session\sessionClasses\MeetingInfoService.as:267]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
Here is my full debug output:
[SWF] /weborb/AFCS_Learn-debug/GetToken.swf - 1,502,845 bytes after decompression
warning: unable to bind to property 'userManager' on class 'com.adobe.rtc.session::ConnectSessionContainer'
Key That I got = exx=eDo6OjoyMzQ6acDovL2Nvbm5lY3RcuYWNyb2JhdC5jb20vdGltZ2Vyci91c2VybG9naW46MDoyY2U1MDJiY2JkMjlhNzlkYmRiNTlhMjk1MDQwNGE2ZWY5NTFkMWM3AFCS Beta Build # : 0.92
requestInfo http://connectnow.acrobat.com/MeName/userlogin?exx=eDo6OjoyMzQ6aHDovL2Nvbm5lY3RubWNyb2JhdC5jb20vdGlt...
Warning: Ignoring 'secure' attribute in policy file from http://connectnow.acrobat.com/crossdomain.xml. The 'secure' attribute is only permitted in HTTPS and socket policy files. See http://www.adobe.com/go/strict_policy_files for details.
Warning: Domain connectnow.acrobat.com does not specify a meta-policy. Applying default meta-policy 'master-only'. This configuration is deprecated. See http://www.adobe.com/go/strict_policy_files to fix this problem.
#THROWING ERROR# bad authentication key
Error: Invalid username or password:Login again
at com.adobe.rtc.authentication::AbstractAuthenticator/onLoginFailure()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\authentication\AbstractAuthenticator.as:182]
at com.adobe.rtc.authentication::AbstractAuthenticator/onAuthorizationFailure()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\authentication\AbstractAuthenticator.as:197]
at com.adobe.rtc.session.sessionClasses::MeetingInfoService/onComplete()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\session\sessionClasses\MeetingInfoService.as:267]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
Not sure what the problem is but for some reason the key that I got from my backend php connection will not work. Anyone seen this before?
Thanks,
timgerr
Views
Replies
Total Likes
Here is my PHP backend Class
public $account;
public function __construct(){
$this->account = new AFCSAccount("http://connectnow.acrobat.com/MeName/");
$this->account->login("MeName@MeEmail.com","MePassword");
}private function GetToken($userName, $id)
{
$room = "http://connectnow.acrobat.com/MeName/userlogin";
$session = $this->account->getSession($room);
$token = $session->getAuthenticationToken("fsdfdaasdaf810a4d1a9fasdfasdfasdf",$fullname,$id,$room,100);
if(strlen($token) > 1 ){
return $token;
} else {
return 0;
}
Thanks again,
timgerr
Views
Replies
Total Likes
Has anyone gotten external authentication working???
Thanks,
timgerr
Views
Replies
Total Likes
http://www.google.com/search?q=afcsexternalauthentication
nigel
Views
Replies
Total Likes
Nigel, thanks for the reply. I have written my script many times and I still get the same problem. Not sure what to do here. Anyone have a working example of an external authentication working????
Thanks for the help.
timgerr
Views
Replies
Total Likes
Can you send your script ? I can have a look.
Views
Replies
Total Likes
Thanks for looking at this. Here is my code, I am using Weborb to communicate to my backend. I have also gotten the token by echoing the backend php and hardcoding the token (
auth.authenticationKey =exx=eDpUaW1nZXJyOjo6NDQzNDpodHRwOi8vY29ubmVjdG5vdy5hY3JvYmF0LmNvbS90aW1nZXJyL21haW46MDpkNWZkM2Y3YjdiMTRkZjk2ZGZhOWZiMTFmMDFlM2UwZjMzNTUwNGU3
Here is my Flex code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:rtc="AfcsNameSpace" creationComplete="AuthenicateForToken()">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.remoting.RemoteObject;
import mx.controls.Alert;
private var WhoLogIn_sessionid:String;
private var WhoLogIn_uid:String;
private var token:String;
public function AuthenicateForToken():void
{
var r:RemoteObject = new RemoteObject("GenericDestination");
r.source = "dnt.WhoLoggedIn.AFCSToken";
r.GetToken.addEventListener(FaultEvent.FAULT,this.FailedToken);
r.GetToken.addEventListener(ResultEvent.RESULT,this.RecieveToken);
r.GetToken();
}
private function RecieveToken(r:ResultEvent):void
{
this.token = r.result.toString();
trace(this.token);
auth.authenticationKey = this.token;
session.login();
}
private function FailedToken(f:FaultEvent):void
{
//Alert.show('Could not get list of logged in users');
trace(f.message);
trace(f.fault);
}
]]>
</mx:Script>
<rtc:AdobeHSAuthenticator id="auth" />
<rtc:ConnectSessionContainer autoLogin="false" id="session" width="100%" height="100%" authenticator="{auth}" roomURL="http://connectnow.acrobat.com/timgerr/main">
<rtc:SimpleChat width="363" height="151" x="10" y="291"/>
<rtc:WebCamera width="361.5" height="235" y="48" x="10"/>
<rtc:AudioPublisher />
<mx:List dataProvider="{session.userManager.userCollection}" labelField="displayName" x="379.5" y="48" height="394" width="155"/>
</rtc:ConnectSessionContainer>
</mx:Application>
I have sent you my PHP file via PM (it has my username and password in it).
Let me know if I am a FOOL.
Thanks for the help, all the Adobe employees rock.
timgerr
Views
Replies
Total Likes
I have sent you another Personal Message.
Tim
Views
Replies
Total Likes
Tim, I just replied to you.
You are using the wrong shared secret. I suspect you have two AFCS accounts and you are mixing them up
Views
Replies
Total Likes