From 02d9880a48f354f0fcf6b277150b0ebbfefcbb69 Mon Sep 17 00:00:00 2001 From: Guillaume Bougard Date: Wed, 12 Jun 2024 17:29:04 +0200 Subject: [PATCH] fix: Better send now oauth token request scope as a string also from injector --- bin/glpi-injector | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/glpi-injector b/bin/glpi-injector index c7c55bb2f..da8ab094d 100755 --- a/bin/glpi-injector +++ b/bin/glpi-injector @@ -210,7 +210,7 @@ sub sendContent { grant_type => "client_credentials", client_id => $options->{"oauth-client-id"}, client_secret => $options->{"oauth-client-secret"}, - scope => ["inventory"], + scope => "inventory", } ); $oauth_request->header('Content-Type' => 'application/json');