I am using the JSON datasource plugin and am trying to setup a new URL that uses an authorization: bearer token. How do I enter it? I have tried this (shown below) and also tried with the OAuth toggle selected (instead of With Credentials) and got the same result.
I tested my URL and bearer token in Node-RED using HTTP GET request and was able to get the data fine, so I know my URL and token work. It’s only in this plugin that I cannot figure out how to insert my token as a Custom HTTP Header
From my experience, most API access tokens are relatively short lived, and there’s an OAuth2 flow to obtain an access token via a client credentials grant.
Has anyone found a solution for this yet? I am facing the same issue, and I have written a script to update the token via the Grafana datasources API. However, it is not working as expected.
Hi , I tried to look that link but it doesnt tell you how to refresh your bearer token. It does show you what to do once you’ve obtained one though. What is needed to dynamically fill out the bearer token before sending the actual API command to get data?