On Wednesday 12 July 2006 15:00, Tom Chiverton wrote:
> All right, fixed that, my bad :-)

I take it all back :-(
If I have the end point URL (http://somehost/flex2gateway) protected at the 
web server level, how can I make Flex send along a particular 
username/password in the HTTP 'Authorization' header when it calls a remote 
object ?

Neither setCredentials() or setRemoteCredentials() work - the web browser just 
displays it's normal HTTP 'authorisation needed' prompt, and once entered 
there all proceeds well, so it's just a case of making Flex do the same 
thing.
All is well if I protect the root URL (but then the web browser prompts the 
user before loading the Flex before passing on the Authorization header OK).

> Any word on HTTPS endpoints ?

*No one* is trying to do CFC remoting over SSL ?
With
            <destination id="environmentService">
                    <channels>
                            <channel ref="my-cfamf-arch-sec"/>
                    </channels>
                    <properties>                            
<source>com.XXX.EnvironmentService</source>
                            <access>
                                    <use-mappings>true</use-mappings>           
                         
<method-access-level>remote</method-access-level>
                            </access>
                            <property-case>                                    
<force-cfc-lowercase>false</force-cfc-lowercase>                                
    
<force-query-lowercase>false</force-query-lowercase>                            
        
<force-struct-lowercase>false</force-struct-lowercase>
                            </property-case>
                    </properties>
            </destination>

and
<channel-definition id="my-cfamf-arch-sec" 
class="mx.messaging.channels.SecureAMFChannel">
                <endpoint 
uri="https://archiving.localdomain:443/flex2gateway/"; 
class="flex.messaging.endpoints.AMFEndpoint"/>
                <properties>
                        <polling-enabled>false</polling-enabled>
                        <serialization>
                                <instantiate-types>false</instantiate-types>
                        </serialization>
                </properties>
        </channel-definition>

I get an error when trying to use it that says "destination environmentService 
not accessible over channel my-cfamf-arch-sec" :-(

The SWF is being served via HTTPS from the same host name, but I've stuck the 
following cross domain policy file in anyway to no avail:
<cross-domain-policy>
<allow-access-from domain="*" secure="false" />
</cross-domain-policy>


-- 
Tom Chiverton

****************************************************

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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to