acquia / acquia-sdk-php

The Acquia SDK for PHP allows developers to build applications on top of Acquia services.
MIT License
25 stars 20 forks source link

Network call to get credentials not working #48

Open cpliakas opened 10 years ago

Zlender commented 8 years ago

This is going to be an interesting one. The reason why the call is not working is that password needs to be hashed and settings for hash come from acquia.agent.communication.settings. And with those settings acquia_connector hashes the password using https://api.drupal.org/api/drupal/includes%21password.inc/function/_password_crypt/7 . We would need to move all of that code into this library. I looked at https://github.com/ircmaxell/PHP-PasswordLib but it oesn't support passing in salt which is needed.