You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I know that when we want to add an API key to an API Gateway method, we can do so by passing apiKeyRequired: true to addMethod in @aws-cdk/aws-apigateway.
Here is the sample from the Open API document, however, this was not enough to set the API key.
openapi: 3.0.0paths:
/something:
get:
# Operation-specific security:security:
- ApiKeyAuth: []responses:
'200':
description: OK (successfully authenticated)# 1) Define the key name and locationcomponents:
securitySchemes:
ApiKeyAuth: # arbitrary name for the security schemetype: apiKeyin: header # can be "header", "query" or "cookie"name: X-API-KEY # name of the header, query parameter or cookie# 2) Apply the API key globally to all operationssecurity:
- ApiKeyAuth: [] # use the same name as under securitySchemes
The text was updated successfully, but these errors were encountered:
Hi, I know that when we want to add an API key to an API Gateway method, we can do so by passing
apiKeyRequired: true
toaddMethod
in @aws-cdk/aws-apigateway.But I couldn't find the same way in this library.
Are API keys still not supported?
It would be wonderful if we could do the following.
Here is the sample from the Open API document, however, this was not enough to set the API key.
The text was updated successfully, but these errors were encountered: