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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        6d 21h 16m 1 Alvaro Alonso 09/Apr/19 12:22 PM
        In Progress In Progress Answered Answered
        2s 1 Alvaro Alonso 09/Apr/19 12:22 PM
        Answered Answered Closed Closed
        2s 1 Alvaro Alonso 09/Apr/19 12:22 PM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        aalonsog Alvaro Alonso made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        aalonsog Alvaro Alonso made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        aalonsog Alvaro Alonso made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        fla Fernando Lopez made changes -
        Assignee Alvaro Alonso [ aalonsog ]
        fla Fernando Lopez made changes -
        HD-Enabler KeyRock [ 10889 ]
        Description
        Created question in FIWARE Q/A platform on 02-04-2019 at 13:04
        {color: red}Please, ANSWER this question AT{color} 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?
        Created question in FIWARE Q/A platform on 02-04-2019 at 13:04
        {color: red}Please, ANSWER this question AT{color} 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?
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        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
        backlogmanager Backlog Manager created issue -

          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: