Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-15651

[fiware-stackoverflow] How can I give permissions based on entity type?

    Details

      Description

      Created question in FIWARE Q/A platform on 02-04-2019 at 13:04
      Please, ANSWER this question AT https://stackoverflow.com/questions/55473700/how-can-i-give-permissions-based-on-entity-type

      Question:
      How can I give permissions based on entity type?

      Description:
      I'm trying to set permissions based on the types of entities Orion is going to save. As the permissions are associated to "endpoints" I had tried to set as endpoint /entities?type=Truck (for example). The problem is that it tells me (Keyrock through PEP response) that the user is not authorized in the application.
      I have looked at all the connections in the database and it appears to me that he is authorized, has his role, his permission, and his assigned organization, all within the only application that has been created.

      In the tutorial something similar appears with the POST request, but this is because in the body of the message the type of entity is sent. In the case of the GET I don't see it so clear, since it goes in the URL, but trying this hasn't worked.

      Is it possible that this should not be done in this way? How should this type of permissions be created?

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2019-04-02 15:06|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2019-04-02 15:06|CREATED monitor | # answers= 0, accepted answer= False

          People

          • Assignee:
            aalonsog Alvaro Alonso
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: