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

FIWARE.Question.Tech.orion-ld: create subscription with URL including Bearer Token in the header.

    Details

      Description

      Created question in FIWARE Q/A platform on 09-09-2022 at 09:09
      Please, ANSWER this question AT https://stackoverflow.com/questions/73660060/orion-ld-create-subscription-with-url-including-bearer-token-in-the-header

      Question:
      orion-ld: create subscription with URL including Bearer Token in the header

      Description:
      Hello FiWare specialists,
      I like to create a subscription, which pushes notifications to an external service.
      The external service needs authorization with a barrier token.
      If I use curl, I ass "--header 'Authorization: Bearer XXX'".
      How can I add a barrier token to the subscription request?
      "notification": {
      "attributes": [ "id", "type", "name", "location", "occupancy"],
      "format": "normalized",
      "endpoint":

      { "uri": "http://a.b.c.de:1111", "accept": "application/json" }

      },

      Is there an option to add a header field to the "endpoint" setup in the subscription like:
      "headers": "Authorization: Bearer XXX"

      Hopefully, you can help me in that case.
      Thanks, Knigge

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        16d 1h 2m 1 Ken Zangelin 26/Sep/22 8:34 AM

          People

          • Assignee:
            kzangeli Ken Zangelin
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: