[AWS] Digest auth with SOAP

Pascal Obry pascal at obry.net
Mon Feb 2 14:23:48 CET 2009


Petr,

> is there any way to implement SOAP server/client calls with
> Digest authentication? I've tried and got to the point, where

Does it work for basic authentication?

> But now the client panics with
> raised AWS.CLIENT.PROTOCOL_ERROR : <HTML><HEAD>
> in the 
> Response : constant SOAP.Message.Response.Object'Class
>            := SOAP.Client.Call
>                 (Connection, "RequestVLAN", Payload);
> 
> Obviously, this might be because of not sending appropriate
> Authentication: headers, but maybe due to something else.

Looks like a bug to  me.

> Is there any way to implement this properly?

The best way to proceed would be to create a small reproducer and to
debug it. Eventually you can post the reproducer on this list to get
some help.

> And a small sidenote - the AWS.Client plays automagic with
> us, since even if I say Mode => AWS.Client.Basic in
> 
> AWS.Client.Set_WWW_Authentication (Connection => Connection,
> 				User => Slartibartfast_Config.Username,
> 				Pwd => Slartibartfast_Config.Password,
> 				Mode => AWS.Client.Basic);
> 
> It still switches to Digest after servers sends back 401. While
> it is OK for this kind of application, I would guess this should
> be at least said somewhere...

Would be nice to have a reproducer for this one too.

Thanks,
Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595


More information about the AWS mailing list