Open chrisminett opened 1 year ago
@ErikBooijMB is there anything I need to add to get this PR approved? I'm not sure how anyone could use signature validation currently as it seems to be entirely broken for us, and blocking using v3 of this package.
$_SERVER
params were being accessed using undefined constants auto-converted to strings. Fix to use regular strings.HTTP_
prefix, and using all uppercase characters and underscores. The existing check for simplyMessageBird-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.