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

WebSocket Authorization Request Context need to be sended to all routes #1379

Closed
brazilianbytes opened this issue Apr 17, 2022 · 1 comment
Closed

Comments

@brazilianbytes
Copy link
Contributor

Bug Report

Current Behavior

When you use a WebSocket Lambda Custom Authorizator and this result is 'allow', all socket messages has the requestContext with the Authorization object. This is actually sent with the $connect route only.

Expected behavior/code

The requestContext need to be present on all routes, like the API Gateway behavior.

Environment

  • serverless version: [3.14.0]
  • serverless-offline version: [8.7.0]
  • node.js version: [e.g. v14.9.0]
  • OS: [Ubuntu 21.10]

Possible Solution

I will open a pull request with the code fix.

This was referenced Apr 17, 2022
brazilianbytes added a commit to brazilianbytes/serverless-offline that referenced this issue Apr 26, 2022
brazilianbytes added a commit to brazilianbytes/serverless-offline that referenced this issue May 5, 2022
@dnalborczyk
Copy link
Collaborator

fixed with: #1380

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

2 participants