-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
@aws-cdk/aws-apigatewayv2Related to Amazon API Gateway v2Related to Amazon API Gateway v2@aws-cdk/aws-apigatewayv2-authorizersRelated to aws-apigatewayv2-authorizers packageRelated to aws-apigatewayv2-authorizers packageeffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2
Description
Please allow us to set a Lambda authorizer for a WebSocket API.
Currently we cannot set it because there's no interface for it.
Use Case
Restrict access to a WebSocket API by cognito auth or other auth method.
Proposed Solution
Setting an authorizer for a WebSocket API is simple.
You must only set authorizationType and authorizerId when creating a CfnRoute to $connect
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-route.html
Because you can only set authorizer for $connect route.
And there's only one authorizer type; LambdaAuthorizer.
Other
- 👋 I may be able to implement this feature request
-
⚠️ This feature might incur a breaking change
This is a 🚀 Feature Request
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-apigatewayv2Related to Amazon API Gateway v2Related to Amazon API Gateway v2@aws-cdk/aws-apigatewayv2-authorizersRelated to aws-apigatewayv2-authorizers packageRelated to aws-apigatewayv2-authorizers packageeffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2