You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@abdera.apache.org by Woody Anderson <wo...@xoopit.com> on 2007/12/17 20:24:59 UTC
AuthPolicy
Hello,
I would like to request that more of the HttpClient aspects of abdera
be exposed through the client.
there is currently a method:
AbderaClient.registerScheme( name, authClass );
but no unregisterSchema
this is implemented in terms of a static call to:
org.apache.commons.httpclient.auth.AuthPolicy.registerSchema
which is kind of odd but it is nice encapsulation, if there were also
the reverse operation.
i'm doing this basically to disable by default "basic" auth, which is
dangerous (always) but particularly with preemptive auth and wel..
non-ssl etc.
i'm currently sovling this with direct calls to AuthPolicy, but
perhaps there should be a do/undo wrapper for this method as well.
-w
Re: AuthPolicy
Posted by James M Snell <ja...@gmail.com>.
I just committed this change to the trunk.
- James
Woody Anderson wrote:
> Hello,
>
> I would like to request that more of the HttpClient aspects of abdera
> be exposed through the client.
>
> there is currently a method:
>
> AbderaClient.registerScheme( name, authClass );
>
> but no unregisterSchema
>
> this is implemented in terms of a static call to:
>
> org.apache.commons.httpclient.auth.AuthPolicy.registerSchema
>
> which is kind of odd but it is nice encapsulation, if there were also
> the reverse operation.
>
> i'm doing this basically to disable by default "basic" auth, which is
> dangerous (always) but particularly with preemptive auth and wel..
> non-ssl etc.
>
> i'm currently sovling this with direct calls to AuthPolicy, but
> perhaps there should be a do/undo wrapper for this method as well.
> -w
>