Intercept GetSharedObject() on Server

Posted:
Thu Jan 31, 2008 11:05 pm
by neilo
How would one go about intercepting a client request of SharedObject.getRemote() from the server side? I have two things in mind: 1.) deny the request, or 2.) return an instance of a custom sub-class of FluorineFx.Messaging.Rtmp.SO.SharedObject. With the latter would the client simply have to have made a call to registerClassAlias() in order for the appropriate ActionScript class to be instantiated?
Any info would be great, even if just pointing to an existing example/sample, thanks!
Re: Intercept GetSharedObject() on Server

Posted:
Thu Jan 31, 2008 11:42 pm
by neilo
I haven't tried it yet, but I think I see how to do it: my ApplicationAdapter sub-class will need to implement ISharedObjectService. From there I'm still fuzzy on the details, because all ApplicationAdapter does is use a scope-based SharedObjectService which sounds like something that'd be in the configuration files somewhere.
Re: Intercept GetSharedObject() on Server

Posted:
Sat Feb 09, 2008 7:54 pm
by neilo
I just figured out how to do deny the creation of shared objects based on their name:
http://www.flashsecrets.com/2008/02/restrict-sharedobject-name.htmlHope this helps some people!