This is proving to be ridiculously hard under Android. I'm not sure
what I'm doing wrong. I'm using the HttpClient and trying to pass
username / password using standard REST techniques (Http auth).
However, I'm running into a significant problem with getting this to
work right. Has anyone done this on Android?
Preston
On Apr 28, 11:25 am, Preston Crawford <
preston.crawf...@gmail.com>
wrote:
> Nothing. That's the direction I'm going in right now. Using HTTP auth
> protocol, but authenticating against our user database. It's just that
> as I work on this something like OpenAuth pops up and I wonder if I
> should be considering that.
>
> Sent from my iPhone
>
> On Apr 28, 2010, at 10:48 AM, Jeremy Logan <
jeremy.lo...@gmail.com>
> wrote:
>
>
>
>
>
> > Maybe I'm missing something, but what's the problem with just using
> > HTTP authentication on every request?
>
> > On Wed, Apr 28, 2010 at 10:29 AM, Preston Crawford <
preston.crawf...@gmail.com
> > > wrote:
> > Yeah, I'm a little turned around on this right now. I talked to
> > someone recently who advocated, since I'm using REST, that I go with
> > using HTTP auth to handle authentication and then store the
> > username / password on the client when the client is "logged in".
> > Then each request to the REST services could be accompanied by the
> > username / password and there would always be a challenge / response
> > at that point.
>
> > That made sense and all seemed very pure HTTP and pure rest. The
> > problem is that as I take a look at going that direction it's
> > proving to be very difficult. So I'm not sure if at a certain point
> > it isn't better to go with OAuth.
>
> > All I know is this. I'm trying to, in a reasonable amount of time,
> > get to a point where I authenticate against a web service and have
> > some way to keep state (probably on the client it's looking like) so
> > I can use those same credentials over and over again without asking
> > the user for them again. And I'm trying to do this the most standard
> > way that makes sense.
>
> > Preston
>
> > On Tue, Apr 27, 2010 at 9:42 AM, Adrian Harris Crowne <
aharriscro...@gmail.com
> > > wrote:
> > I'm not sure if this is what you're asking, but more and more sites
> > are integrating OAuth and similar authentication systems into their
> > APIs for that purpose. Another standard is OpenID. Twitter and some
> > other services use http authentication, but someone recently told me
> > that Twitter is abandoning that for OAuth like this month or
> > something.
>
> > OAuth and OpenID are pretty challenging, especially without former
> > security knowledge. There is a OAuth library for the iPhone called
> > MPOAuthMobile which works, but it has a steep learning curve--but
> > not as steep as actually doing OAuth yourself!
>
> > Anyway, I would bet there are similar Android libraries, possibly
> > even a version of the same library ported.
>
> > Hope that helps,
> > Adrian
>
> > On Tue, Apr 27, 2010 at 1:39 AM, Preston Crawford <
preston.crawf...@gmail.com
> For more options, visit this group athttp://
groups.google.com/group/mobile-portland?hl=en.