Great, thank you. I didn't see that. Thanks again for all your work. -David
----- Original Message ----- From: Joachim Bauch <[EMAIL PROTECTED]> Date: Friday, June 16, 2006 8:00 pm Subject: Re: [Red5] Security Question To: [email protected] > Hi David, > > [EMAIL PROTECTED] wrote: > > I believe I could authenticate a client when it connects because > the > > connection (and is client) is passed to the ApplicationAdapter's > > appConnect() method. But when you call a method from the flash > client, > > the RTMPHandler's invokeCall() doesn't forward the connection > (and > > client) to the method. How do I know who is executing that > method? Do > > I need to modify the Red5 code? Is there a way to inject a > check at > > the RTMPHandler via AOP? Do these questions make sense? :) > > You can use the Red5 object to access the current connection and > clientfrom your method. > > Example: > import org.red5.server.api.IClient; > import org.red5.server.api.IConnection; > import org.red5.server.api.Red5; > > ... > > public void myMethod() { > IConnection conn = Red5.getConnectionLocal(); > IClient = conn.getClient(); > > ... > > } > > Joachim > > _______________________________________________ > Red5 mailing list > [email protected] > http://osflash.org/mailman/listinfo/red5_osflash.org > _______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
