I got a successful response to the request to create an accessToken. I want to make another request for devices and I will add the Authorization header with the accessToken value to this request. Unfortunately, SCG returns me the response "Authorization Header is wrong" with code SAE-080006. What is the correct format for the Authorisation header?
@logart If you are using the Python requests library, this is how you would update the headers after receiving the Bearer token to make subsequent requests to the API.
Thank you for your help. It's strange, but the program I used (Restdebugger) probably sends the wrong Authorization header. If I used curl, everything works.
DELL-Chris H
7 Practitioner
•
9682 Posts
•
48046 Points
0
0
Posted March 20th, 2024 19:15
I believe it is going to come down to syntax, as this query is working for me while testing.
Get list of assets:
curl -k -H 'Content-Type: application/json' -H 'Authorization:Bearer <token>' https://IPADDRESS:5700/SupportAssist/api/v2/inventory/assets
Could you try comparing to it and see if there is a difference?
DELL-Chris H
Social Media and Communities Professional
Dell Technologies | Enterprise Support Services
#IWork4Dell
Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!