Groups | Blog | Home
all groups > macromedia flash flashcom > august 2005 >

macromedia flash flashcom : Stuck on how to correctly setup server


Johnny937
8/16/2005 3:52:34 PM
I have the following setup.
apache2.x
tomcat 5.5.x
flash mx 2004 pro 7.2
flash communication server 1.5

I'm having trouble understanding how the Flash server hooks in with either
Apache2 or Tomcat. I am unable to find any documentation on this and I have no
clue where to go from here...

1. Does anyone know how to setup the connection between the Flash server and
Apache2/Tomcat?

2. Does anyone know how to setup ticket-based authentication between Flash and
Apache2/Tomcat?
My tomcat server is currently handling login authentication through the
login-config (FORM-Based) setup in the web.xml file

3. Does anyone know where I can find any relevant documentation for this, or
have any sample code they could show me to help set this up?

Thank you.


stoem
8/16/2005 8:49:23 PM
there is no real 'connection' between Flashcom and any web or database server.
If you want to authenticate users serverside you need to use a flavour of
Remoting.

http://www.amazon.co.uk/exec/obidos/ASIN/0596005040/qid%3D1109841551/ref%3Dsr%5F
8%5Fxs%5Fap%5Fi1%5Fxgl//202-8495535-7389465#product-details has an entire
chapter dedicated to authentication and ticketing.

If you want somethign that's less involved and less secure why not
authenticate a user via loadvars and Tomcat and then fire the FCS connection
only if that authentication was ok?
You can of course do ticketing but it is much more involved: swf fetches
ticket from Tomcat, swf passes ticket to FCS, FCS checks ticket via serverside
Remoting, FCS accepts or denies connection and informs swf

stoem


Johhny938
8/17/2005 12:57:25 PM
stoem,

Thank you for quickly replying to my post.

I have already read that chapter, but it did not provide me with the code that
I needed. I would like to ensure that a user is logged in (through form-based
login in tomcat) before running a flash file. If they are not, I would like
Tomcat to handle the login authentication, not the Flash Communication Server.

Everywhere I've seen says FCS can use ticket-based authentication, but I have
yet to see a sample that shows how it is done ( it would be very useful if they
showed it done with Apache2/Tomcat).

I definitely want to go the route of using ticket-based authentication instead
of loadVars.

Thanks.
AddThis Social Bookmark Button