comparison mod_flash_policy.wiki @ 199:e3654b7cd4aa

Created wiki page through web user interface.
author leonbogaert@gmail.com
date Wed, 06 Jul 2011 21:23:46 +0000
parents
children 41800325d778
comparison
equal deleted inserted replaced
198:757684c251d9 199:e3654b7cd4aa
1 #summary Adds support for flash socket policy
2
3 = Introduction =
4
5 This Prosody plugin adds support for flash socket policies. When connecting with a flash client (from a webpage, not an exe) to prosody the flash client requests for an xml "file" on port 584 or the connecting port (5222 in the case of default xmpp). Responding on port 584 is tricky because it requires root priviliges to set up a socket on a port < 1024.
6
7 This plugins filters the incomming data from the flash client. So when the client connects with prosody it immediately sends a xml request string ({{{<policy-file-request/>\0}}}). Prosody responds with a flash cross-domain-policy. See http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html for more information.
8
9 = Usage =
10
11 Add "flash_policy" to your modules_enabled list.
12
13 = Configuration =
14
15 || crossdomain_file || Optional. The path to a file containing an cross-domain-policy in xml format. ||
16 || crossdomain_string || Optional. A cross-domain-policy as string. Should include the xml declaration. ||
17
18 Both configuration options are optional. If both are not specified a cross-domain-policy with "{{{<allow-access-from domain="*" />}}}" is used as default.
19
20 = Compatibility =
21 ||0.7||Works||
22
23 = Caveats/Todos/Bugs =
24
25 * The assumption is made that the first packet received will always
26 contain the policy request data, and all of it. This isn't robust
27 against fragmentation, but on the other hand I highly doubt you'll be
28 seeing that with such a small packet.
29 * Only tested by me on a single server :)