https web accelarator to http issues

Avatar

Avatar

insitebright

Avatar

insitebright

insitebright

30-10-2009

I have an architecture which has an  web accelartor in the network. It accepts https requests coming in and then converts them to http requests and passes them to the server. I cannot get my services to communicate from browser to server.  Is it possible to use an https uri/url with an unsecured amf endpoint. I have tried multiple combinations and cannot get it to work.

        <!--  An AMF channel that uses HTTPS for secure communication can use
              the {server.port} token as a SWF must be loaded via a secure URL
              in order to make secure connections.
        -->
        <channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
            <endpoint uri="https://{server.name}:{server.port}/vOpenConnect/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
            <properties>
                <!--HTTPS requests on some browsers do not work when pragma "no-cache" are set-->
               
                <!-- Optional. Use this to limit the client channel's connect attempt
                     to the specified time interval.
                <connect-timeout-seconds>5</connect-timeout-seconds>
                -->
            </properties>
        </channel-definition>

Help!

View Entire Topic

Avatar

Avatar

John_C_Cummins

Avatar

John_C_Cummins

John_C_Cummins

30-10-2009

Check out this link which explains how to do this

http://blogs.adobe.com/lin/archives/flex/security/index.html

To define new channels for your Flex app you have to recompile it, the configuration change is not enough. From reading this blog post it seems that changing the destination for the channel can be done just by configuring it.

Hope this helps.

Here is the relevant info from the blog link above, to protect against the entry getting moved:

How to access flex app over https but connect to backend using http

Many application needs to be accessed over secure connection, but only need to connect to the backend using non-secure connection, or vice versa. How do we accomplish that?

Secure connections can talk to secure and non-secure endpoints. Non-secure connections can only talk to non-secure endpoints. So you will need to configure your channel differently.

1. If the app is requested over https and then use http to connect to backend:

<channel-definition id="my-amf-secure" class="mx.messaging.channels.SecureAMFChannel">
<endpoint uri="https://{server.name}:{server.port}{context.root}/flex2gateway/" class="flex.messaging.endpoints.AMFEndpoint "/>
<properties>
<add-no-cache-headers>false</add-no-cache-headers>
</properties>  
</channel-definition>

2. If the flex app is requested over http, then using https to connect backend:
<channel-definition id="my-amf" class="mx.messaging.channels.SecureAMFChannel">
<endpoint uri="https://{server.name}:{server.port}{context.root}/flex2gateway/" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
<properties>
<add-no-cache-headers>false</add-no-cache-headers>
</properties>  
</channel-definition>

3. For LCDS 2.5 and 2.5.1, the configuration would be enough.
For FDS 201, you need to apply the hotfix build 168076 as well.  You can get the build 168076 from flex Tech support.