Hi there,

When using Flex 1.5 client application, when using Application.cfm to deal
with remoting SetCredentials(user,pwd), I just set it once and all requests
to my endpoint use those credentials even if the target component is
different. In a current project, I started using Application.cfc
(onRequestStart) instead of Application.cfm and now I have to set
credentials to all my components before calling methods even if my endpoint
url is the same for all my cfc components.

Authentication code:

<cflogin>
<cfif isdefined("cflogin")>
<CFNTAuthenticate username="#cflogin.name#"
password="#cflogin.password#" domain="mydomain" result="authenticated"
listgroups="yes">

<cfif authenticated.status eq "success">
<cfloginuser name="#cflogin.name#" password="#cflogin.password#"
roles="#authenticated.groups#">

</cfif>
</cfif>
</cflogin>

my RemoteObjects definitions:

<mx:RemoteObject id="loginService"
endpoint="/flashservices/gateway?macromedia=rocks"
source="pt.cofina.service.remoting.LoginManager" showBusyCursor="true"
protocol="http"
result="event.call.resultHandler( event );"
fault="event.call.faultHandler( event );"/>
<mx:RemoteObject id="distribuicaoService"
endpoint="/flashservices/gateway?macromedia=rocks"
source="pt.cofina.service.remoting.distribuicaoMan ager"
showBusyCursor="true" protocol="http"
result="event.call.resultHandler( event );"
fault="event.call.faultHandler( event );"/>

With Application.cfm:

loginService.connection.setCredentials( myusername, mypwd )

If I use the Application.cfc I have to use setCredential for each CFC:

loginService.connection.setCredentials( myusername, mypwd )
distribuicaoService.connection.setCredentials( myusername, mypwd )

Is this expected?

Joćo Fernandes