RE: [flexcoders] Re: setUsernamePassword on RemoteObject

2005-11-14 Thread Brian Lesser
Picking up on an old thread from back in July, where calling addHeader 
on a NetConnection object got authentication working with Coldfusion 
when I try to do the same thing in Flex 2 Alpha 1, I get:

code: NetConnection.Call.Failed and description: HTTP: Failed

Does anyone know if addHeader is still supposed to be available, if its 
a bug, or if the parameters have changed?
 
Yours truly,
-Brian

Credentials sent in custom manner are never sent using HTTP Headers. The
information is contained within the AMF/HTTP POST body.

The Flex-only API, setUsernamePassword, works on a per request basis and
sends credential information inside a special Flex Envelope type which
can have per-request headers. The legacy Flash Remoting setCredentials
API worked on a per AMF packet basis (which potentially contained a
batch of several requests as per NetConnection) and was sent as an AMF
Header. Either way, you can only have one J2EE or CF session per
connection, and connections are pooled on endpoint URI in Flex. So it
should be fine for you to use the old setCredentials() API in most
cases.

You could just call setCredentials() on the RemoteObject connection
property yourself... it simply sets an AMF Header on the underlying
NetConnection with an anonymous object that has two properties 'userid'
and 'password'.

addHeader(Credentials, false, {userid: userId, password:
password});


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL mailto:%5BEMAIL PROTECTED] On
Behalf Of Andrew Spaulding
Sent: Tuesday, July 05, 2005 3:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: setUsernamePassword on RemoteObject

Thanks Vinny,

Im assuming theres no workaround for this? Im probably just gonna pass
the username and password as variables with each call then. Im using
the cairngorm framework and I have a delegate super class so I can
hide it all in there ;)

cheers,

Andrew Spaulding
www.flexdaddy.info



--- In flexcoders@yahoogroups.com, Vinny Timmermans
[EMAIL PROTECTED] wrote:
 This is a known bug in Flex 1.5. The setUsernamePassword API is not
 connected to CFLOGIN. Hope they will fix it in Flex 2.
 
 Vinny 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL mailto:%5BEMAIL PROTECTED]
On
 Behalf Of Andrew Spaulding
 Sent: dinsdag 5 juli 2005 04:38
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] setUsernamePassword on RemoteObject
 
 Hi,
 
 I'm trying to use the flash remoting setCredentials equivalent in
flex to
 send a username and password with my remote object requests. 
 
 I can see the Credentials being set in the header when i view the
traffic in
 the netConnectionDebugger, but nothing seems to be in the http
header, and
 hence is not picked up in cflogin
 
 Any ideas?
 
 Andrew Spaulding
 www.flexdaddy.info
 
__
Brian Lesser
Assistant Director, Teaching and Technology Support
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
M5B 2K3Fax: (416) 979-5220
Office: AB48D  E-mail: [EMAIL PROTECTED]
(Enter through LB66)   Web: http://www.ryerson.ca/~blesser
__



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
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/
 




RE: [flexcoders] Re: setUsernamePassword on RemoteObject

2005-11-14 Thread Ian Welsh
If you are using the new Flex 2 Coldfusion Adapter and CF7, use
remoteObjectID.setUsernamePassword(username, password) and in CF you'll see
them in the cflogin scope #cflogin.name# #cflogin.password#

Hope this helps
Ian


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brian Lesser
Sent: 14 November 2005 15:44
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: setUsernamePassword on RemoteObject

Picking up on an old thread from back in July, where calling addHeader on a
NetConnection object got authentication working with Coldfusion 
when I try to do the same thing in Flex 2 Alpha 1, I get:

code: NetConnection.Call.Failed and description: HTTP: Failed

Does anyone know if addHeader is still supposed to be available, if its a
bug, or if the parameters have changed?
 
Yours truly,
-Brian

Credentials sent in custom manner are never sent using HTTP Headers. The
information is contained within the AMF/HTTP POST body.

The Flex-only API, setUsernamePassword, works on a per request basis and
sends credential information inside a special Flex Envelope type which can
have per-request headers. The legacy Flash Remoting setCredentials API
worked on a per AMF packet basis (which potentially contained a batch of
several requests as per NetConnection) and was sent as an AMF Header. Either
way, you can only have one J2EE or CF session per connection, and
connections are pooled on endpoint URI in Flex. So it should be fine for you
to use the old setCredentials() API in most cases.

You could just call setCredentials() on the RemoteObject connection property
yourself... it simply sets an AMF Header on the underlying NetConnection
with an anonymous object that has two properties 'userid'
and 'password'.

addHeader(Credentials, false, {userid: userId, password:
password});


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL mailto:%5BEMAIL PROTECTED]
On Behalf Of Andrew Spaulding
Sent: Tuesday, July 05, 2005 3:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: setUsernamePassword on RemoteObject

Thanks Vinny,

Im assuming theres no workaround for this? Im probably just gonna pass the
username and password as variables with each call then. Im using the
cairngorm framework and I have a delegate super class so I can hide it all
in there ;)

cheers,

Andrew Spaulding
www.flexdaddy.info



--- In flexcoders@yahoogroups.com, Vinny Timmermans [EMAIL PROTECTED]
wrote:
 This is a known bug in Flex 1.5. The setUsernamePassword API is not 
 connected to CFLOGIN. Hope they will fix it in Flex 2.
 
 Vinny
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL mailto:%5BEMAIL 
 PROTECTED]
On
 Behalf Of Andrew Spaulding
 Sent: dinsdag 5 juli 2005 04:38
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] setUsernamePassword on RemoteObject
 
 Hi,
 
 I'm trying to use the flash remoting setCredentials equivalent in
flex to
 send a username and password with my remote object requests. 
 
 I can see the Credentials being set in the header when i view the
traffic in
 the netConnectionDebugger, but nothing seems to be in the http
header, and
 hence is not picked up in cflogin
 
 Any ideas?
 
 Andrew Spaulding
 www.flexdaddy.info
 
__
Brian Lesser
Assistant Director, Teaching and Technology Support Computing and
Communications Services Ryerson University 350 Victoria St.
Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
M5B 2K3Fax: (416) 979-5220
Office: AB48D  E-mail: [EMAIL PROTECTED]
(Enter through LB66)   Web: http://www.ryerson.ca/~blesser
__



 Yahoo! Groups Sponsor ~-- Get
Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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



 







 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

Re: [flexcoders] Re: setUsernamePassword on RemoteObject

2005-11-14 Thread Brian Lesser
Thanks Ian,
I'm trying to make remoting calls without the adapter and other classes. 
I think I should be able to do this with NetConnection alone but have 
not been able to make addHeader work for authentication to Coldfusion 
from Flex 2.
Yours truly,
-Brian

Ian Welsh wrote:

If you are using the new Flex 2 Coldfusion Adapter and CF7, use
remoteObjectID.setUsernamePassword(username, password) and in CF you'll see
them in the cflogin scope #cflogin.name# #cflogin.password#

Hope this helps
Ian


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brian Lesser
Sent: 14 November 2005 15:44
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: setUsernamePassword on RemoteObject

Picking up on an old thread from back in July, where calling addHeader on a
NetConnection object got authentication working with Coldfusion 
when I try to do the same thing in Flex 2 Alpha 1, I get:

code: NetConnection.Call.Failed and description: HTTP: Failed

Does anyone know if addHeader is still supposed to be available, if its a
bug, or if the parameters have changed?
 
Yours truly,
-Brian

Credentials sent in custom manner are never sent using HTTP Headers. The
information is contained within the AMF/HTTP POST body.

The Flex-only API, setUsernamePassword, works on a per request basis and
sends credential information inside a special Flex Envelope type which can
have per-request headers. The legacy Flash Remoting setCredentials API
worked on a per AMF packet basis (which potentially contained a batch of
several requests as per NetConnection) and was sent as an AMF Header. Either
way, you can only have one J2EE or CF session per connection, and
connections are pooled on endpoint URI in Flex. So it should be fine for you
to use the old setCredentials() API in most cases.

You could just call setCredentials() on the RemoteObject connection property
yourself... it simply sets an AMF Header on the underlying NetConnection
with an anonymous object that has two properties 'userid'
and 'password'.

addHeader(Credentials, false, {userid: userId, password:
password});


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL mailto:%5BEMAIL PROTECTED]
On Behalf Of Andrew Spaulding
Sent: Tuesday, July 05, 2005 3:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: setUsernamePassword on RemoteObject

Thanks Vinny,

Im assuming theres no workaround for this? Im probably just gonna pass the
username and password as variables with each call then. Im using the
cairngorm framework and I have a delegate super class so I can hide it all
in there ;)

cheers,

Andrew Spaulding
www.flexdaddy.info



--- In flexcoders@yahoogroups.com, Vinny Timmermans [EMAIL PROTECTED]
wrote:
  

This is a known bug in Flex 1.5. The setUsernamePassword API is not 
connected to CFLOGIN. Hope they will fix it in Flex 2.

Vinny

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL mailto:%5BEMAIL 
PROTECTED]


On
  

Behalf Of Andrew Spaulding
Sent: dinsdag 5 juli 2005 04:38
To: flexcoders@yahoogroups.com
Subject: [flexcoders] setUsernamePassword on RemoteObject

Hi,

I'm trying to use the flash remoting setCredentials equivalent in


flex to
  

send a username and password with my remote object requests. 

I can see the Credentials being set in the header when i view the


traffic in
  

the netConnectionDebugger, but nothing seems to be in the http


header, and
  

hence is not picked up in cflogin

Any ideas?

Andrew Spaulding
www.flexdaddy.info



__
Brian Lesser
Assistant Director, Teaching and Technology Support Computing and
Communications Services Ryerson University 350 Victoria St.
Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
M5B 2K3Fax: (416) 979-5220
Office: AB48D  E-mail: [EMAIL PROTECTED]
(Enter through LB66)   Web: http://www.ryerson.ca/~blesser
__



 Yahoo! Groups Sponsor ~-- Get
Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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



 








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



 


  



-- 
__
Brian Lesser
Assistant Director, Teaching and Technology Support
Computing and Communications Services

RE: [flexcoders] Re: setUsernamePassword on RemoteObject

2005-11-14 Thread Ian Welsh
I *think* you will be out of luck with Flex2 as I think they have made
changes to remoteobject/AMF which require the new CF adapter (if you use
Coldfusion) or Flex Enterprise Services. In essence, with Flex 2, it seems
that remoteobject and the associated speed enhancements of AMF are only
available to 'Enterprise' users and/or us CF'ers.

Maybe someone from MM can clarify but I think you will have to look at
'ordinary' web services if you must use Flex2 without the CF Adapter and
CF7.

Regards
Ian

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brian Lesser
Sent: 14 November 2005 17:44
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: setUsernamePassword on RemoteObject

Thanks Ian,
I'm trying to make remoting calls without the adapter and other classes. 
I think I should be able to do this with NetConnection alone but have not
been able to make addHeader work for authentication to Coldfusion from Flex
2.
Yours truly,
-Brian

Ian Welsh wrote:

If you are using the new Flex 2 Coldfusion Adapter and CF7, use 
remoteObjectID.setUsernamePassword(username, password) and in CF you'll 
see them in the cflogin scope #cflogin.name# #cflogin.password#

Hope this helps
Ian


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On 
Behalf Of Brian Lesser
Sent: 14 November 2005 15:44
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: setUsernamePassword on RemoteObject

Picking up on an old thread from back in July, where calling addHeader 
on a NetConnection object got authentication working with Coldfusion
when I try to do the same thing in Flex 2 Alpha 1, I get:

code: NetConnection.Call.Failed and description: HTTP: Failed

Does anyone know if addHeader is still supposed to be available, if its 
a bug, or if the parameters have changed?
 
Yours truly,
-Brian

Credentials sent in custom manner are never sent using HTTP Headers. 
The information is contained within the AMF/HTTP POST body.

The Flex-only API, setUsernamePassword, works on a per request basis 
and sends credential information inside a special Flex Envelope type 
which can have per-request headers. The legacy Flash Remoting 
setCredentials API worked on a per AMF packet basis (which potentially 
contained a batch of several requests as per NetConnection) and was 
sent as an AMF Header. Either way, you can only have one J2EE or CF 
session per connection, and connections are pooled on endpoint URI in 
Flex. So it should be fine for you to use the old setCredentials() API in
most cases.

You could just call setCredentials() on the RemoteObject connection 
property yourself... it simply sets an AMF Header on the underlying 
NetConnection with an anonymous object that has two properties 'userid'
and 'password'.

addHeader(Credentials, false, {userid: userId, password:
password});


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL mailto:%5BEMAIL 
PROTECTED] On Behalf Of Andrew Spaulding
Sent: Tuesday, July 05, 2005 3:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: setUsernamePassword on RemoteObject

Thanks Vinny,

Im assuming theres no workaround for this? Im probably just gonna pass 
the username and password as variables with each call then. Im using 
the cairngorm framework and I have a delegate super class so I can hide 
it all in there ;)

cheers,

Andrew Spaulding
www.flexdaddy.info



--- In flexcoders@yahoogroups.com, Vinny Timmermans [EMAIL PROTECTED]
wrote:
  

This is a known bug in Flex 1.5. The setUsernamePassword API is not 
connected to CFLOGIN. Hope they will fix it in Flex 2.

Vinny

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL mailto:%5BEMAIL 
PROTECTED]


On
  

Behalf Of Andrew Spaulding
Sent: dinsdag 5 juli 2005 04:38
To: flexcoders@yahoogroups.com
Subject: [flexcoders] setUsernamePassword on RemoteObject

Hi,

I'm trying to use the flash remoting setCredentials equivalent in


flex to
  

send a username and password with my remote object requests. 

I can see the Credentials being set in the header when i view the


traffic in
  

the netConnectionDebugger, but nothing seems to be in the http


header, and
  

hence is not picked up in cflogin

Any ideas?

Andrew Spaulding
www.flexdaddy.info



__
Brian Lesser
Assistant Director, Teaching and Technology Support Computing and 
Communications Services Ryerson University 350 Victoria St.
Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
M5B 2K3Fax: (416) 979-5220
Office: AB48D  E-mail: [EMAIL PROTECTED]
(Enter through LB66)   Web: http://www.ryerson.ca/~blesser
__



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help

Re: [flexcoders] Re: setUsernamePassword on RemoteObject

2005-11-14 Thread Brian Lesser
Thanks Matt,
For what it might be worth, I have applications where I've used the 
NetConnection and RecordSet classes and little else. This has saved me 
from worrying about changes in the remoting classes and components in 
the past. The easiest Flex adoption path for me is if I can bolt new 
standalone based clients on to existing Flash/Coldfusion applications. I 
was hoping to port a couple apps to Flex 2 this way.
Yours truly,
-Brian

m_chotin wrote:

For now it's either the CF adapter or enterprise, we're still figuring
out the story...

--- In flexcoders@yahoogroups.com, Ian Welsh [EMAIL PROTECTED] wrote:
  

I *think* you will be out of luck with Flex2 as I think they have made
changes to remoteobject/AMF which require the new CF adapter (if you use
Coldfusion) or Flex Enterprise Services. In essence, with Flex 2, it


seems
  

that remoteobject and the associated speed enhancements of AMF are only
available to 'Enterprise' users and/or us CF'ers.

Maybe someone from MM can clarify but I think you will have to look at
'ordinary' web services if you must use Flex2 without the CF Adapter and
CF7.

Regards
Ian

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brian Lesser
Sent: 14 November 2005 17:44
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: setUsernamePassword on RemoteObject

Thanks Ian,
I'm trying to make remoting calls without the adapter and other


classes. 
  

I think I should be able to do this with NetConnection alone but


have not
  

been able to make addHeader work for authentication to Coldfusion


from Flex
  

2.
Yours truly,
-Brian




-- 
__
Brian Lesser
Assistant Director, Teaching and Technology Support
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
M5B 2K3Fax: (416) 979-5220
Office: AB48D  E-mail: [EMAIL PROTECTED]
(Enter through LB66)   Web: http://www.ryerson.ca/~blesser
__



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
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/
 




RE: [flexcoders] Re: setUsernamePassword on RemoteObject

2005-07-05 Thread Vinny Timmermans
 Im assuming theres no workaround for this?

No. I've brought this to the attention of the Flex team again recently.
Maybe you should leave them a message as well ;-)

Vinny 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andrew Spaulding
Sent: dinsdag 5 juli 2005 09:16
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: setUsernamePassword on RemoteObject

Thanks Vinny,

Im assuming theres no workaround for this? Im probably just gonna pass the
username and password as variables with each call then. Im using the
cairngorm framework and I have a delegate super class so I can hide it all
in there ;)

cheers,

Andrew Spaulding
www.flexdaddy.info



--- In flexcoders@yahoogroups.com, Vinny Timmermans [EMAIL PROTECTED]
wrote:
 This is a known bug in Flex 1.5. The setUsernamePassword API is not 
 connected to CFLOGIN. Hope they will fix it in Flex 2.
 
 Vinny
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of Andrew Spaulding
 Sent: dinsdag 5 juli 2005 04:38
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] setUsernamePassword on RemoteObject
 
 Hi,
 
 I'm trying to use the flash remoting setCredentials equivalent in
flex to
 send a username and password with my remote object requests. 
 
 I can see the Credentials being set in the header when i view the
traffic in
 the netConnectionDebugger, but nothing seems to be in the http
header, and
 hence is not picked up in cflogin
 
 Any ideas?
 
 Andrew Spaulding
 www.flexdaddy.info
 
 
 
 
 --
 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




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



 







--
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/
 




RE: [flexcoders] Re: setUsernamePassword on RemoteObject

2005-07-05 Thread Dirk Eismann
Andrew,

you could of course provide your own login() method inside a CFC which
does the CFLOGIN work for you. This way you only need to send the
username and password once (with the login call) and then use
IsUserInRole()/GetAuthUser() inside your CFC methods afterwards.

Dirk.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Vinny Timmermans
Sent: Tuesday, July 05, 2005 2:44 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: setUsernamePassword on RemoteObject

 Im assuming theres no workaround for this?

No. I've brought this to the attention of the Flex team again recently.
Maybe you should leave them a message as well ;-)

Vinny 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andrew Spaulding
Sent: dinsdag 5 juli 2005 09:16
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: setUsernamePassword on RemoteObject

Thanks Vinny,

Im assuming theres no workaround for this? Im probably just gonna pass
the username and password as variables with each call then. Im using the
cairngorm framework and I have a delegate super class so I can hide it
all in there ;)

cheers,

Andrew Spaulding
www.flexdaddy.info



--- In flexcoders@yahoogroups.com, Vinny Timmermans
[EMAIL PROTECTED]
wrote:
 This is a known bug in Flex 1.5. The setUsernamePassword API is not 
 connected to CFLOGIN. Hope they will fix it in Flex 2.
 
 Vinny
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On Behalf Of Andrew Spaulding
 Sent: dinsdag 5 juli 2005 04:38
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] setUsernamePassword on RemoteObject
 
 Hi,
 
 I'm trying to use the flash remoting setCredentials equivalent in
flex to
 send a username and password with my remote object requests. 
 
 I can see the Credentials being set in the header when i view the
traffic in
 the netConnectionDebugger, but nothing seems to be in the http
header, and
 hence is not picked up in cflogin
 
 Any ideas?
 
 Andrew Spaulding
 www.flexdaddy.info
 
 
 
 
 --
 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




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



 







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



 




--
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/
 




RE: [flexcoders] Re: setUsernamePassword on RemoteObject

2005-07-05 Thread Vinny Timmermans
Now the bug fix won't get priority anymore ;-)

Vinny
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dirk Eismann
Sent: dinsdag 5 juli 2005 14:57
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: setUsernamePassword on RemoteObject

Andrew,

you could of course provide your own login() method inside a CFC which does
the CFLOGIN work for you. This way you only need to send the username and
password once (with the login call) and then use
IsUserInRole()/GetAuthUser() inside your CFC methods afterwards.

Dirk.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Vinny Timmermans
Sent: Tuesday, July 05, 2005 2:44 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: setUsernamePassword on RemoteObject

 Im assuming theres no workaround for this?

No. I've brought this to the attention of the Flex team again recently.
Maybe you should leave them a message as well ;-)

Vinny 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andrew Spaulding
Sent: dinsdag 5 juli 2005 09:16
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: setUsernamePassword on RemoteObject

Thanks Vinny,

Im assuming theres no workaround for this? Im probably just gonna pass the
username and password as variables with each call then. Im using the
cairngorm framework and I have a delegate super class so I can hide it all
in there ;)

cheers,

Andrew Spaulding
www.flexdaddy.info



--- In flexcoders@yahoogroups.com, Vinny Timmermans [EMAIL PROTECTED]
wrote:
 This is a known bug in Flex 1.5. The setUsernamePassword API is not 
 connected to CFLOGIN. Hope they will fix it in Flex 2.
 
 Vinny
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On Behalf Of Andrew Spaulding
 Sent: dinsdag 5 juli 2005 04:38
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] setUsernamePassword on RemoteObject
 
 Hi,
 
 I'm trying to use the flash remoting setCredentials equivalent in
flex to
 send a username and password with my remote object requests. 
 
 I can see the Credentials being set in the header when i view the
traffic in
 the netConnectionDebugger, but nothing seems to be in the http
header, and
 hence is not picked up in cflogin
 
 Any ideas?
 
 Andrew Spaulding
 www.flexdaddy.info
 
 
 
 
 --
 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




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



 







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



 




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



 






--
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/
 




RE: [flexcoders] Re: setUsernamePassword on RemoteObject

2005-07-05 Thread Peter Farland

Credentials sent in custom manner are never sent using HTTP Headers. The
information is contained within the AMF/HTTP POST body.

The Flex-only API, setUsernamePassword, works on a per request basis and
sends credential information inside a special Flex Envelope type which
can have per-request headers. The legacy Flash Remoting setCredentials
API worked on a per AMF packet basis (which potentially contained a
batch of several requests as per NetConnection) and was sent as an AMF
Header. Either way, you can only have one J2EE or CF session per
connection, and connections are pooled on endpoint URI in Flex. So it
should be fine for you to use the old setCredentials() API in most
cases.

You could just call setCredentials() on the RemoteObject connection
property yourself... it simply sets an AMF Header on the underlying
NetConnection with an anonymous object that has two properties 'userid'
and 'password'.

addHeader(Credentials, false, {userid: userId, password:
password});


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andrew Spaulding
Sent: Tuesday, July 05, 2005 3:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: setUsernamePassword on RemoteObject

Thanks Vinny,

Im assuming theres no workaround for this? Im probably just gonna pass
the username and password as variables with each call then. Im using
the cairngorm framework and I have a delegate super class so I can
hide it all in there ;)

cheers,

Andrew Spaulding
www.flexdaddy.info



--- In flexcoders@yahoogroups.com, Vinny Timmermans
[EMAIL PROTECTED] wrote:
 This is a known bug in Flex 1.5. The setUsernamePassword API is not
 connected to CFLOGIN. Hope they will fix it in Flex 2.
 
 Vinny 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
 Behalf Of Andrew Spaulding
 Sent: dinsdag 5 juli 2005 04:38
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] setUsernamePassword on RemoteObject
 
 Hi,
 
 I'm trying to use the flash remoting setCredentials equivalent in
flex to
 send a username and password with my remote object requests. 
 
 I can see the Credentials being set in the header when i view the
traffic in
 the netConnectionDebugger, but nothing seems to be in the http
header, and
 hence is not picked up in cflogin
 
 Any ideas?
 
 Andrew Spaulding
 www.flexdaddy.info
 
 
 
 
 --
 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




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



 





--
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/