Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-6458

Define default authentication method to be used by OpenAPI

XMLWordPrintable

    • False
    • False
    • Documentation (Ref Guide, User Guide, etc.)

      Given the example below, where a swagger.json file specifies security definitions but no security tag to operations, could be useful to allow to specify a default auth type during the OpenAPI codegen.

       

      "securityDefinitions": {
        "basic": {
          "type": "basic"
        }
      },
      "swagger": "2.0" 

      As an workaround, we can tweak the schema so basic auth is used in all operations:

       

      "securityDefinitions": {
        "basic": {
          "type": "basic"
        }
      },
      "security": [
        {
          "basic": []
        }
      ],
      "swagger": "2.0" 

       

              rhn-support-mputz Martin Weiler (Inactive)
              cnicolai@redhat.com Cristiano Nicolai (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: