Can not get token to allow reading data from Things
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.
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.
I try to generate credential from another tool API like Postman. I can get error message following picture below
Could you tell me why and how to solve this issue?
Answers
-
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.
0