Skip to content

(apigatewayv2): Allow to set Lambda authorizer for WebSocket API #13869

@tmokmss

Description

@tmokmss

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions