On 26 August 2014 11:08, Reto Gmür <[email protected]> wrote: > That should be an easy one.... >
Should be :) Just tried doing pre-emptive auth, according to: http://hc.apache.org/httpcomponents-client-ga/tutorial/html/authentication.html but I'm still getting the 401 challenge, so I guess I'll try doing the regular two-step auth. > > But if you're application is running in OSGi you definitively shouldn't do > this. You don't want to have to configure your app to store the password of > the instance it is running on (and need to reconfigure it, wehn the > password is changed). Hmm, I see your point, but what if an account is set up, reserved for the app, on install, wouldn't that be feasible? I would prefer keeping the comms as much as possible still over HTTP rather than OSGi, more potential for distributed systems. Cheers, Danny.
