Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for QueryParams #62

Open
motleydev opened this issue Sep 23, 2024 · 0 comments
Open

Support for QueryParams #62

motleydev opened this issue Sep 23, 2024 · 0 comments

Comments

@motleydev
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant