Hello I have been trying to figure out on how to authenticate the app using invoke-webrequest, I have been able to generate a token, but it seems like I can't (don't know how) the send the app name in the request.
Anyone know this? I don't the what command and where to supply it, I have tried to send it in the header like this:
Code: Select all
#$headers = @{app="testapp"}
#$test = Invoke-WebRequest "http://192.168.0.25/api/token" -Method Put -Headers $headers -UseBasicParsing
I get a token back but when I come to the final step i get error
{ "error": "No app was configured in the token" } anyone have a clue on how to do this?
Thanks.