Skip to content

Support for QueryParams #62

@motleydev

Description

@motleydev

A common way to provide authentication is via a token string passed as a query param. At the moment, there's no way to define a token value as a query param without hard coding the value. This could leverage the forward headers dialog but append as a query param instead of pass as header.

openapi: 3.0.0
...
# 1) Define the key name and location
components:
  securitySchemes:
    ApiKeyAuth:        # arbitrary name for the security scheme
      type: apiKey
      in: query       # can be "header", "query" or "cookie"
      name: token  # name of the header, query parameter or cookie
  ...

the in property is important to watch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions