Announcement

#1 2018-09-06 21:33:46

jmlavanchy
Member
2018-09-06
2

How to create new user with bcrypte-ed password from the API

Hello,

I want my web site to remotely manage users allowed to create albums and photos in piwigo.

So my idea is to use the API method pwg.users.add. This method takes the username and password as parameters. However, I could not find the information if the password is/should/must be encrypted.

Our Website has internal users, and only the bcrypt-ed password is available. Can I pass this encrypted password in pwg.users.add?

Any other suggestion?


Piwigo version: 2.9, (to be) hosted on piwigo.com

Offline

 

#2 2018-09-06 22:07:20

drlecter
Member
2016-03-17
21

Re: How to create new user with bcrypte-ed password from the API

I think you send it in Cleartext. The API do the Rest.

Offline

 

#3 2018-09-07 08:51:40

jmlavanchy
Member
2018-09-06
2

Re: How to create new user with bcrypte-ed password from the API

Hi,
Thanks for the answer.

That's what I was afraid of....

1) this not a safe way of sending pwd
2) my website doesn't store passwords, only the encrypted representation, so there's no way for it to use the real pwd in the method

There should be an alternative way to create a user, giving the expected encryption key, especially for an API, IMO.

BR

Jean-Marc

Offline

 

#4 2018-09-07 11:27:11

drlecter
Member
2016-03-17
21

Re: How to create new user with bcrypte-ed password from the API

I not tested with the API. I use my own Server with SSL. At this time i disable the API for remote access, because i miss a authorization for using. All Services, which use the API, are runnig on the same host.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact