Can not get token to allow reading data from Things

Aditap Khongjun_21800
Aditap Khongjun_21800 Altair Community Member
edited June 2022 in Community Q&A

I have created simple Things "person" and created Client ID and Client Secret for generate credential to allow me create and read data of Things.

image

image

I use API Inspector to generate credential by using scope data.read and data.create

I found that it can not generate credential when using scope data.read but it can generate for scope be data.create only, the following picture below. from this issue, i can only send data to Things but can not read back from them.

 

image

image

I try to generate credential from another tool API like Postman. I can get error message following picture below  

image

image

Could you tell me why and how to solve this issue?

 

Answers

  • Unknown
    edited January 4

    Hello Aditap,

    Things only have permission to send data but not to read it (due to security purposes). If you want to write data, you can use the credentials from the thing and the scope will be data.create (as in your screenshot).

    If you want to read data, then you need to create an app with the following information:

    • Scopes: data
    • Type:client credentials

    Don't forget to add the policy once you click save.

    imageimage