cancel
Showing results for 
Search instead for 
Did you mean: 

IOT HCP - Access to the requested resource is not authorized (HTTP 401)

Former Member

Hi!

I am trying to post a simple message using postman but repeatedly get this error message

Access to the requested resource is not authorized (HTTP 401)

Chrome extension has been set to run incognito.

Any ideas on how to fix this?

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

I am facing the same issue I have tried all the things mentioned above as well as refer all the blogs from the internet but it couldn't resolved

anyone can help me out frrom this issue?

Former Member
0 Kudos

Hi Parminder,

As you say that you are trying to post a message & hence you need to pass the Bearer code in Authorization header, this is generated the time you create your device.

Use "Headers" section in Postman and under it, add "Authorization" with "Bearer <token of the device>" & it shall work, in case not, post the URL (without your SID/PID) along with parameters you are passing in the request so we can see what the problem is.

Thanks.

anton_levin
Advisor
Advisor
0 Kudos

Postman will reuse your current browser session. If you are already signed into IoT Cockpit with SAML it will ignore your Bearer authorization header. Close all browser windows (maybe even clear cache) and launch Postman new. Regards, Anton