cancel
Showing results for 
Search instead for 
Did you mean: 

401 Authentication error in a REST POST(IOT 4.0 on Cloud Foundry)

Former Member
0 Kudos

Hi All,

We had a working scenario in the NEO platform where the IoT services accepted data from the device based on the OAuth token of the device.

Data was posted to https.//..../com.sap.iotservices.mms/v1/api/http/data/<Device ID> successfully.

Now to implement the same on Cloud Foundry(IoT 4.0), we have a problem.

The configured IoT device doesnt generate an OAuth like in NEO, but a PEM certificate and a private key which our physical device cannot use.

Our physical devices are incapable of 2 way authentication using certificates.

Posting data on https://..../iot/gateway/rest/measures/<Device ID> fails.

Any idea how to get OAuth authentication working on the new IoT(4.0) platform?

Thanks,

Vivek

Accepted Solutions (0)

Answers (1)

Answers (1)

anton_levin
Advisor
Advisor

Hello Vivek,

security flow between IoT components on Neo [1] and CF [2] is different (see figures). Direct message sending from devices to the Gateway Cloud (on CF) supports certificate based authentication only as you have noticed.

However, you may want to leverage Gateway Edge (REST) [3] which will send messages to the Message Management Service on behalf of devices and do the necessary certificate authentication.

Regards,

Anton

[1] https://help.sap.com/viewer/7436c3125dd5491f939689f18954b1e9/Cloud/en-US/5e5df3e412f449d7af178b545d7...

[2] https://help.sap.com/viewer/91d9184adbe941e68aafb8724005a479/Cloud/en-US/dc0d9cd86a9b47fea177e134dbf...

[3] https://help.sap.com/viewer/70c1b574604f490080a7176e5391a375/Cloud/en-US/ac9fbe437484480b99b9900f9d8...

Former Member
0 Kudos

Hi Anton,

Thanks for the response, I will explore option 3.

Regards,

Vivek