Authenticating from a web service call - Mailing list pgsql-general

From Bryan Montgomery
Subject Authenticating from a web service call
Date
Msg-id CAPTJ3=e0Vq_kRUtxe9Jqot4hbwjGoJnSbtKXwq0uvZhqmVOo=Q@mail.gmail.com
Whole thread Raw
Responses Re: Authenticating from a web service call
Re: Authenticating from a web service call
List pgsql-general
Hello,
We are looking at implementing a web service that basically makes calls to the database.

I have been thinking about ways to secure the web service based on the database.

I initially thought about just connecting to the database as the user with parameters passed through the web service - however I don't know how to do that other than clear text passwords.

So, is it possible for clients to encrypt their password and pass that through the web service to the database? I was looking at the way postgres stores the users passwords but first of all I'm not sure if that is something the client could do. Then, if they could, how to go about connecting as a system user and verifying that the userid and password provided by the client are correct.

I could just provide another table with an encrypted password using a specified encryption process that the client can replicate and provide through the web service.

Hopefully this makes sense :)

Bryan.

pgsql-general by date:

Previous
From: Peter Bex
Date:
Subject: Re: Zero-length character breaking query?
Next
From: Raymond O'Donnell
Date:
Subject: Re: Authenticating from a web service call