HalosGhost / pbpst

A command-line libcurl C client for pb deployments
GNU General Public License v2.0
44 stars 9 forks source link

Does it support authentication #81

Closed amosbird closed 7 years ago

amosbird commented 7 years ago

I just set up a private pb and I don't want others to post content to it. Can I achieve this by pbpst?

amosbird commented 7 years ago

Ok, I just hard coded one :smiley:

tmplt commented 7 years ago

I wasn't aware pb authentication was possible. Could you share your changes? I'm sure it would make a good addition.

HalosGhost commented 7 years ago

pb does not natively support any authentication method. I would be interested in seeing the changes as well.

amosbird commented 7 years ago

well, i just use nginx to do the proxy and authentication, and add curl_easy_setopt(handle, CURLOPT_USERPWD, userpwd); to pbpst :smiley:

HalosGhost commented 7 years ago

Ahh, I see. Fair enough. Be careful to not accidentally use a different provider since you will send your user password to the other provider as well (which will—at best—leak the password to the other provider, and—at worst—cause pbpst to crash horribly somehow).