Skip to content

POST an auth_key parameter for authentication #234

Answered by locri3n
locri3n asked this question in Q&A
Discussion options

You must be logged in to vote

I was able to resolve this issues once I started posting the data to https://httpbin.org/post to get a better idea of how the data was being formatted.

The main issue for me was that the POST data was being send in [args] rather than [form]:
{
"args": { "bob": "dog" },
"data": "",
"files": {},
"form": {},
"headers": {
"Accept": "application/json, text/plain, /",
"Accept-Encoding": "gzip, deflate",
"Accept-Language": "en-US,en;q=0.5",
"Content-Length": "0",
"Content-Type": "application/json",
"Host": "httpbin.org",
"User-Agent": "Grafana/8.3.3",
"X-Amzn-Trace-Id": "Root=12345",
"X-Grafana-Org-Id": "1"
},
"json": null,
"origin": "ip.addresses",
"url": "https://httpbin.org/post?bob=dog"
}

Ho…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@locri3n
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by locri3n
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants