Re: [flexcoders] Re: BlazeDS use secure channel when loaded over https.
You might put something like the following code in a preinitialize event handler: const reUrl:RegExp = /(http|https):\/\/(([^:]+)(:([...@]+))?@)?([^:\/]+)(:([0-9]{2,5}))?(\/([\w#!:.?+=%...@!\-\/]+))?/; const appUrl:String = Application.application.url; const parts:Array = reUrl.exec(appUrl); if (!parts) throw new Error(Invalid URL: + appUrl); if (parts[1] == http ) { const channels:XMLList = ServerConfig.xml..channels.channel; for (var channel:String in channels) { if (channels[channe...@type==mx.messaging.channels.SecureAMFChannel) { channels[channe...@type=mx.messaging.channels.AMFChannel; } } } This will, on the preinitialize event, grab the url the app is being called from, parse it with a regular expression, check to see if it's being called from http rather than https, and modify the channels accordingly to operate on a regular AMFChannel instead of a SecureAMFChannel. Nick Collins On Thu, Sep 10, 2009 at 4:27 PM, Wesley Acheson wesley.ache...@gmail.comwrote: Does anyone else know where I can ask or point me somewhere I might find more information? Regards, Wesley Acheson On Wed, Sep 9, 2009 at 5:28 PM, Wesley Acheson wesley.ache...@gmail.comwrote: Hi all, We are nearing the end of a development cycle. One thing that I just noticed is that my application is talking over http instead of https when the application is loaded from a https domain. In live we will not have any http element of the domain active, only https. However locally there is no https component. Is there any way of loading off a secure channel when the flash file was loaded via https and a non secure channel otherwise? Otherwise I'm going to have to change all the channels to secure for deployment, and no longer run the application locally. Regards, Wesley Acheson
Re: [flexcoders] Re: BlazeDS use secure channel when loaded over https.
On Friday 11 Sep 2009, Nick Collins wrote: You might put something like the following code in a preinitialize event handler: You could just but both a secure and non-secure channel in the Channels list... it's what we do. The connection should 'fall down' the list. -- Helping to assertively monetize proactive magnetic cross-media portals as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Re: BlazeDS use secure channel when loaded over https.
Depending on your environment that would be a great option. It doesn't work for us because our Flex apps live within a federated portal environment. Because of the way Adobe has implemented their support for WSRP, it currently only supports a single channel. On Fri, Sep 11, 2009 at 9:51 AM, Tom Chiverton tom.chiver...@halliwells.com wrote: On Friday 11 Sep 2009, Nick Collins wrote: You might put something like the following code in a preinitialize event handler: You could just but both a secure and non-secure channel in the Channels list... it's what we do. The connection should 'fall down' the list. -- Helping to assertively monetize proactive magnetic cross-media portals as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.Halliwells.com.
Re: [flexcoders] Re: BlazeDS use secure channel when loaded over https.
Thanks I'll give that a shot. On Fri, Sep 11, 2009 at 4:51 PM, Tom Chiverton tom.chiver...@halliwells.com wrote: On Friday 11 Sep 2009, Nick Collins wrote: You might put something like the following code in a preinitialize event handler: You could just but both a secure and non-secure channel in the Channels list... it's what we do. The connection should 'fall down' the list. -- Helping to assertively monetize proactive magnetic cross-media portals as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.Halliwells.com.