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

Request signature validation fixes #216

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

chrisminett
Copy link
Contributor

  • Passing null when the header is missing causes a TypeError, as the signature must be a string.
  • $_SERVER params were being accessed using undefined constants auto-converted to strings. Fix to use regular strings.
  • HTTP headers are usually keyed with HTTP_ prefix, and using all uppercase characters and underscores. The existing check for simply MessageBird-Signature-JWT did not pick up the header when using Apache. Maybe that works on other web servers, so I've left it as a fallback.

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

Successfully merging this pull request may close these issues.

1 participant