Hi,
I would like to use /graph.php to get graph (port graphs). I will use authenticated query with header /Authorization: Basic <digest>/ But this request doesn't work as authenticated query is not allowed for /graph.php url.
I believe /graph.php is not an API query scheme, but it should? be possible to include /graph.php as one.
Does another query, header, parameters exists to fetch a graph without a session (API request) ?
What do you think of this patch in order to allow authenticated query to /graph.php:
Original file is the one of revision 11382:
--- html/includes/authenticate.inc.php.orig 2021-06-08 15:35:43.633475678 +0200 +++ html/includes/authenticate.inc.php.new 2021-05-28 23:53:35.354798084 +0200 @@ -403,7 +403,7 @@ } }
- if ($auth_success && !OBS_API && !OBS_AJAX) + if ($auth_success && !OBS_API && !OBS_AJAX && !OBS_GRAPH) { // If just logged in go to request uri, unless we're debugging or in API, // in which case we want to see authentication module output first.