home icon indicating copy to clipboard operation
home copied to clipboard

OAuth2 Monitoring and Testing

Open michaelmerrill opened this issue 4 years ago • 1 comments

Hi @kinlane,

Can Union Fashion demonstrate how to monitor and test an oauth2 endpoint defined in a openapi 3.0 spec? Something like this:

components:
  securitySchemes:
    OAuth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: /oauth/authorize
          tokenUrl: /oauth/token
          scopes:
            read: read scope
            write: write scope

security: 
  - OAuth2: 
    - write
    - read

paths:
  /orders:
    patch:
      summary: Creates a new order
      security: 
        - OAuth2:
          - write
          - read

michaelmerrill avatar Aug 23 '20 23:08 michaelmerrill

Interesting. I like this. I will add to the list of workflows to flesh out as part of future work.

kinlane avatar Aug 24 '20 15:08 kinlane