edgardmessias / glpi-singlesignon

GNU General Public License v3.0
68 stars 50 forks source link

generic type "provider not defined" error #83

Open mykolq opened 5 months ago

mykolq commented 5 months ago

i wanna use it with generic sso type, configure it, but have en error Provider not defined. I've fix Array to string conversion in /var/www/html/glpi/plugins/singlesignon/inc/toolbox.class.php on line 17 by $url var in toolbox.class.php to $url .= "/provider/".$id['id'];, but it still doesn't work , provider uri in developer mode of browser seems to be ok.

2024-03-19_14-55-04
jjswordy commented 5 months ago

on the current master version (line 42), from:

 $url .= "/provider/".$row['id'];

to:

 $url .= "/provider/".$row;
mykolq commented 5 months ago

on the current master version (line 42), from:

 $url .= "/provider/".$row['id'];

to:

 $url .= "/provider/".$row;

this "fix" doesn't work

arnault38 commented 4 months ago

it doesn't work for me either, but as I only have one provider I have replaced

$url .= "/provider/1";

and it works until waiting for better

invisiblemarcel commented 4 months ago

it doesn't work for me either, but as I only have one provider I have replaced

$url .= "/provider/1";

and it works until waiting for better

That's strange for me both solutions are working.

$url .= "/provider/".$row; and $url .= "/provider/1";

How did you install glpi? I use the docker image diouxx/glpi and there it's working fine with $row but not with $row['id']. PHP version: 8.3.4 GLPI version: 10.0.14

edgardmessias commented 4 months ago

I'm accepting pull requests, 😄