Uploaded image for project: 'REST Client'
  1. REST Client
  2. MGNLRESTCL-218

Open API securityScheme is null

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • None
    • 2.0.4
    • None
    • None

    Description

      The Open API security scheme is defined at a global level.

      {
        "openapi": "3.0.2",
        "info": {
          "title": "Search API",
          "version": "1.0.0",
          "description": "API to add to and delete from index"
        },
        ...
        ...
        "components": {
          ...
          ...
          "securitySchemes": {
            "adb2cBearerToken": {
              "type": "http",
              "scheme": "bearer",
              "bearerFormat": "JWT"
            }
          },
          "headers": {},
          "responses": {},
          "parameters": {}
        },
        "tags": [],
        "security": [
          {
            "adb2cBearerToken": []
          }
        ]
      }
      

      The OpenApiDefinitionMapper doesn't seem to consider this as a possibility and there is no way to explicitly define a security scheme in the definition file. Ultimately that leaves the security scheme set as null.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              rgange Richard Gange
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD