ticgal / one-timesecret

A One-Time Secret integration with GLPI
https://tic.gal/en/project/a-one-time-secret-integration-share-your-passwords-securely/
GNU Affero General Public License v3.0
3 stars 4 forks source link

When you are behind a corporate proxy, the app dosent use the proxy setup of the glpi app #11

Closed glorenzutti closed 2 years ago

glorenzutti commented 2 years ago

https://github.com/ticgal/one-timesecret/issues/11

I have proxy configured in glpi, and it works. I can download updates, I can install plugins from the market, among other things.

n

However, the onetimesecret plugin does not seem to use the proxy settings to make the connection to the onetimesecret.com site to interact with the api.

n

This is the log on the glpi:

n

*** PHP Warning (2): curl_getinfo(): supplied resource is not a valid cURL handle resource in /var/www/glpi/marketplace/onetimesecret/inc/secret.class.php at line 102nBacktrace :nmarketplace/onetimesecret/inc/secret.class.php:102 curl_getinfo()nmarketplace/onetimesecret/front/link.form.php:39 PluginOnetimesecretSecret::createSecret()


Created by glorenzutti

Numero de la peticion de GLPI: 8311
Creado por GitSync en GLPI por Óscar Beiro
OscarBeiro commented 2 years ago

Hi, You are right, we have not considered this scenario. We will give it a try when we review the plugin to update it to GLPI 10. Regards,

inesmv commented 2 years ago

Hi! I modified the code to use a proxy with curl requests if it's configured at GLPI. Waiting for your reply Regards,