Reputation: 5
I am securing both the northbound (4041) and southbound (7897) interfaces of an IoT Agent in FIWARE using Keyrock for authentication and authorization. However, I am facing two issues:
401 Unauthorized Error on Port 7897:
I have successfully secured the northbound interface (4041) using a permanent token and provisioned a sensor with it. I have tried retrieving permanent token to secure north port of iot agent by creating appropriate service group and provisioning a sensor, using both the "iot sensor" user and the "alice-the-admin" user.
When trying to send data to the IoT Agent on port 7897 using an access token obtained for the "iot sensor" user, I receive the following response:
{
"type": "urn:dx:as:InvalidRole",
"title": "Unauthorized",
"detail": "User access-token not authorized"
}
Unable to Assign Roles and Permissions to IoT Sensor User in Keyrock:
P.S: The "iot sensor" user is correctly defined in the IoT Sensors section of the application. However, this user does not appear in Keyrock's control panel under the list of users. Because of this, I am unable to assign roles and permissions to this user.
Steps I have taken:
Upvotes: 0
Views: 21