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

Pattern of http signature #52

Open
bobbyben opened this issue May 3, 2021 · 1 comment
Open

Pattern of http signature #52

bobbyben opened this issue May 3, 2021 · 1 comment

Comments

@bobbyben
Copy link

bobbyben commented May 3, 2021

Hi

This pattern is not compliant with Api Manager Tyk Io.
This Api Manager allow signature without quotation mark.

Example :
Work fine with tyk.io
Signature keyId=${keyId},algorithm=${algorithm},signature=${signature}

But don't compliant with this regexp
"(?\w+)=(("(?[^\"])")|(?\d+\.?\d))"

.compile("(?<key>\\w+)=((\"(?<stringValue>[^\"]*)\")|(?<numberValue>\\d+\\.?\\d*))");

Is it possible to make optional quotation mark in this pattern ?

Thanks

@dblevins
Copy link
Member

dblevins commented Aug 6, 2021

@bobbyben If you send a PR with a test case, I'll be happy to merge it.

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