[gpodder-devel] Authentication procedure using web services

  • From: koeglstefan at gmail.com (Stefan Kögl)
  • Date: Mon, 24 Jan 2011 09:26:04 +0200

Hi,

Am 2011-01-24 07:50, schrieb Rakesh Dhanya (RBEI/ECV1):
> Using web services, is it possible to authenticate a user's
> credentials. I want to be logged in by default, the moment my
> customized gPodder client app is started (I intend to write a small
> client for myself). I can encrypt and store my username and password,
> but how do I reach out to the gPodder server?

gpodder.net uses HTTP Basic Authentication [1]. If you are not logged
in, it will return status code 401 for user-specific requests. You can
catch these and request the same resource again, with user credentials
included. See [1] about the correct syntax.

On [2] you will find an extension of the current authentication. It is
still listed as a draft, but should already work on the webservice.


-- Stefan



[1] http://en.wikipedia.org/wiki/Basic_access_authentication
[2] http://wiki.gpodder.org/wiki/Web_Wervices/API/Drafts

Other related posts: