hasura / hasura/ndc-open-api-lambda

Support for QueryParams

Open
#62 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4
Forks
2
PR merge metrics
No merged PRs in 30d

Description

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.

```yaml
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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.