Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-9768

Support OpenAPI specs with multiple flows in oauth2 sec scheme

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 2.14.0 GA
    • None
    • Toolbox
    • 2
    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • 0
    • 0% 0%

    Description

      Multiple flows in security scheme object.

       

      OpenAPI spec example:

            ---
            openapi: "3.0.0"
            info:
              title: "some title"
              version: "1.0.0"
            paths:
              /pet:
                get:
                  operationId: "getPet"
                  responses:
                    200:
                      description: "successful operation"
            security:
              - petstore_oauth:
                - write:pets
                - read:pets
            components:
              securitySchemes:
                petstore_oauth:
                  type: oauth2
                  flows:
                    clientCredentials:
                      tokenUrl: http://example.org/api/oauth/dialog
                      scopes:
                        write:pets: modify pets in your account
                        read:pets: read your pets
                    authorizationCode:
                      authorizationUrl: https://example.com/api/oauth/dialog
                      tokenUrl: http://example.org/api/oauth/token
                      scopes:
                        write:pets: modify pets in your account
                    implicit:
                      authorizationUrl: http://example.org/api/oauth/dialog
                      scopes:
                        write:pets: modify pets in your account
                    password:
                      tokenUrl: http://example.org/api/oauth/dialog
                      scopes:
                        write:pets: modify pets in your account
                        read:pets: read your pets
                        read:pets: read your pets

      Attachments

        Activity

          People

            Unassigned Unassigned
            eguzki Eguzki Astiz Lezaun
            Darren Fennessy Darren Fennessy
            Martin Kudlej Martin Kudlej
            Eguzki Astiz Lezaun Eguzki Astiz Lezaun
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: