Tom Krcha's FlashRealtime

Hey amigo! These are my notes. I'm Platform Evangelist with Adobe.


External Authentication with AFCS

May 12th, 2009

This videotutorial takes Adobe Flash Collaboration Service to the next level. By enabling custom login or external authentication makes your AFCS applications far more useful in your own systems. So you don’t need to use Acrobat.com credentials to access your app, but you can use your own user database or LDAP service to check login details and then grant users different rights/roles.

Prerequisites: 
- Understand Zend_AMF and PHP basics - see videotutorial (by Lee Brimelow)
- Running PHP server with Zend Framework
- AFCS SDK - http://afcs.acrobat.com
- afcs.php - part of AFCS SDK (extras/scripts/afcs.php)

Duration: 12:40

Link: http://flashrealtime.com/tuts/external-authentication-afcs.html

Source: Source.zip (Flex and PHP)

7 Comments »

  1. Tom, Hi.
    Saw you in Cologne a month ago. You’re doing a great job with the tutorials. I’m just starting to like AFCS and I’d like to read more about it.

    Comment by Radu — May 25, 2009 @ 12:48 am

  2. Hey Radu!
    Thanks man. I am now working on more realtime tutorials.
    Hope you’ll like’em as well!

    Comment by tom — May 28, 2009 @ 1:05 pm

  3. Hi if you keep getting NetConnection.Call.BadVersion, when creating AFCSAccount instance in php via zend amf try edit php functions in afcs.php:

    (line 419) from:
    function http_get(…
    to:
    static function http_get(…

    (line 493) from:
    function http_post(…
    to:
    static function http_post(…

    Comment by Yoz — June 11, 2009 @ 2:03 pm

  4. I keep getting the following error even when using the right adobe credentials for my account:

    [SWF] /AFCS_External_Auth_PHP-debug/Videochat.swf - 1.329.968 bytes after decompression
    warning: unable to bind to property ‘userManager’ on class ‘com.adobe.rtc.session::ConnectSessionContainer’
    AFCS Beta Build # : 0.92
    requestInfo http://connectnow.acrobat.com/ansolas/videochattutorial?exx=eDpUb20gS3JjaGE6OmFuc29sYXM6MTIzOnZpZGVvY2hhdHR1dG9yaWFsOjEwMDo1MTVlZDM1ZDYyMzA2ZjUwN2FhYTM5ODVlYTQ5NzgwODM2NzEyZmRj&mode=xml&x=0.5790218291804194
    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\cocomo\src\com\adobe\rtc\authentication\AbstractAuthenticator.as:182]
    at com.adobe.rtc.authentication::AbstractAuthenticator/onAuthorizationFailure()[C:\work\main\connect\cocomo\src\com\adobe\rtc\authentication\AbstractAuthenticator.as:197]
    at com.adobe.rtc.session.sessionClasses::MeetingInfoService/onComplete()[C:\work\main\connect\cocomo\src\com\adobe\rtc\session\sessionClasses\MeetingInfoService.as:267]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()

    Comment by dl — June 25, 2009 @ 7:51 pm

  5. I recoded the example using JAVA but I still get the same error:

    #THROWING ERROR# bad authentication key
    Error: Invalid username or password:Login again

    ? any idea what could be wrong?

    Comment by dl — June 26, 2009 @ 2:49 pm

  6. Thanks for the clear explanation, though I seem not to get the application running. I am getting the following error message:

    Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.BadVersion

    I already tried to add ’static’ to the php code as mentioned earlier, but no result… Any suggestions?

    Comment by Herre — August 26, 2009 @ 3:11 pm

  7. NetConnection.Call.BadVersion is return always, when there is some problem in AMF protocol … so probably, you have an error in your PHP script. Try running the php script in the browser to see if it returns some errors. Good Luck!

    Comment by tom — September 2, 2009 @ 11:47 am

RSS feed for comments on this post. / TrackBack URL

Leave a comment