Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-1350

[CPS/NCMP] Add Basic Auth to CPS/NCMP OpenAPI Definitions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • London Release
    • Kohn Release, London Release
    • CPS-Core, NCMP
    • None

      Teams are starting to use more requests of the NCMP API from code and at the beginning they added implementation for the client themselves.

      Now the OpenAPI definitions are good enough to generate the client code from it.

       

      There is only one minor issue with it: CPS-NCMP requires basic authentication, but it is missing from the OpenAPI definitions.

      Due to this, the client is generated in a way that authentication cannot be configured, and the generated code is useless.

       

      For reference: https://swagger.io/docs/specification/authentication/basic-authentication/

       

      Diff file added will be used to add PoC code to CPS.

        1. _docker-images.log
          0.3 kB
          Sourabh Sourabh
        2. _sysinfo-1-after-setup.txt
          3 kB
          Sourabh Sourabh
        3. _sysinfo-2-after-robot.txt
          3 kB
          Sourabh Sourabh
        4. image-2022-11-03-15-27-42-033.png
          37 kB
          Sourabh Sourabh
        5. log.html
          231 kB
          Sourabh Sourabh
        6. openapi_patch.diff
          2 kB
          josephkeenan
        7. output.xml
          18 kB
          Sourabh Sourabh
        8. report.html
          229 kB
          Sourabh Sourabh
        9. testplan.txt
          0.1 kB
          Sourabh Sourabh

            josephkeenan josephkeenan
            josephkeenan josephkeenan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: