credentials handling

7 views
Skip to first unread message

Omar

unread,
Jul 15, 2009, 1:07:34 PM7/15/09
to AS3 HttpClient
Hi,

I'm working with HttpClient to access a REST oriented webservice
backend. Secure services use credentials, and they respond with "401
Authorization Required" when I don't provide them. Do you guys have
any clue how I can do that with this API.

Thanks in advance
Omar

gabe

unread,
Jul 15, 2009, 1:33:05 PM7/15/09
to AS3 HttpClient
Currently the API doesn't have any authentication support built in..

If the authentication is basic you can do it manually with the API,
with an Authorization header:

For example,
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
http://en.wikipedia.org/wiki/Basic_access_authentication

If it is digest its a little more complex, but is doable:
http://en.wikipedia.org/wiki/Digest_access_authentication
Reply all
Reply to author
Forward
0 new messages