The implementation in Android is however broken: it uses a fixed nonce of 1. If you server is actually checking for replay requests, you might get errors.
You need to add "Basic" in front of the "Authorization" parameter (if you are using basic auth.). The base64 encoded string also needs both username and password.
<nikolay.elen...@gmail.com> wrote: > On Mon, Apr 2, 2012 at 4:15 AM, Ralph Bergmann | the4thFloor.eu > <ra...@the4thfloor.eu> wrote: >> found an example
> The implementation in Android is however broken: it uses a fixed nonce of 1. > If you server is actually checking for replay requests, you might get errors.
> -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
<nikolay.elen...@gmail.com> wrote: > On Mon, Apr 2, 2012 at 4:15 AM, Ralph Bergmann | the4thFloor.eu > <ra...@the4thfloor.eu> wrote: >> found an example
> The implementation in Android is however broken: it uses a fixed nonce of 1. > If you server is actually checking for replay requests, you might get errors.
This is, of course, for digest authentication. Basic authentication works, but you should only use it over HTTPS.
On Mon, Apr 2, 2012 at 1:13 PM, Michael Banzon <mich...@banzon.dk> wrote: > You need to add "Basic" in front of the "Authorization" parameter (if > you are using basic auth.). The base64 encoded string also needs both > username and password.
I am sure that Ralph will be absolutely ecstatic about that - can you imagine that - a working example that require less code/library inclusion compared to my app - absolutely magnificent!
Personally the first part ("working") would be my clear focus.
<nikolay.elen...@gmail.com> wrote: > On Mon, Apr 2, 2012 at 1:13 PM, Michael Banzon <mich...@banzon.dk> wrote: >> You need to add "Basic" in front of the "Authorization" parameter (if >> you are using basic auth.). The base64 encoded string also needs both >> username and password.
> There is really no need to re-implement functionality already found in > HttpClient. > (unless is broken, like the digest auth implementation)
> -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
On Mon, Apr 2, 2012 at 1:54 PM, Michael Banzon <mich...@banzon.dk> wrote: > I am sure that Ralph will be absolutely ecstatic about that - can you > imagine that - a working example that require less code/library > inclusion compared to my app - absolutely magnificent!
I didn't post the example, but I have to agree. It is indeed a lot better, than having to include (or write your own) Base64 implementation just to re-invent a feature that is already available and probably well tested. Magnificent indeed :)
> Personally the first part ("working") would be my clear focus.